- Bugreport by the courtesy of Karel Zatloukal and Jesse Glick.
lineno++;
if (lineno<=2)
continue;
+ if (!*line || *line=='\n') {
+ /* At least RedHat Linux kernel 2.4.18-18.8.0 sometimes appends
+ * bogus empty line at the end of file.
+ */
+ continue;
+ }
if (4!=sscanf(line,"%u%u%llu%100s",&major,&minor,&blocks,device+strlen("/dev/")))
g_error(_("Error parsing line of \"%s\": %s"),FILENAME_PROC_PARTITIONS,line);
memcpy(device,"/dev/",strlen("/dev/"));