Scan filecopy sppool properly.

This commit is contained in:
Rafal Wojtczuk 2011-03-16 10:14:39 +01:00
parent f370fdab66
commit cdc5756f79

View File

@ -186,9 +186,10 @@ void scan_spool(char *name)
gui_fatal("opendir %s", name); gui_fatal("opendir %s", name);
while ((ent = readdir(dir))) { while ((ent = readdir(dir))) {
char *fname = ent->d_name; char *fname = ent->d_name;
if (fname[0] != '.') if (fname[0] != '.') {
process_spoolentry(fname); process_spoolentry(fname);
break; break;
}
} }
closedir(dir); closedir(dir);
} }