f.tools.cc (fotoxx-22.41) | : | f.tools.cc (fotoxx-22.50) | ||
---|---|---|---|---|
skipping to change at line 603 | skipping to change at line 603 | |||
Nblacklist = 0; | Nblacklist = 0; | |||
fid = fopen(blacklist_file,"r"); // read blacklisted folders/files | fid = fopen(blacklist_file,"r"); // read blacklisted folders/files | |||
if (fid) // e.g. /pathname/* or */filename.tif | if (fid) // e.g. /pathname/* or */filename.tif | |||
{ | { | |||
while (true) { | while (true) { | |||
pp = fgets_trim(buff,XFCC,fid,1); | pp = fgets_trim(buff,XFCC,fid,1); | |||
if (! pp) break; | if (! pp) break; | |||
if (strlen(pp) < 2) continue; | if (strlen(pp) < 2) continue; | |||
Plog(0,"blacklist file: %s \n",pp); | Plog(1,"blacklist file: %s \n",pp); | |||
blacklist[Nblacklist] = zstrdup(pp,"blacklist"); | blacklist[Nblacklist] = zstrdup(pp,"blacklist"); | |||
Nblacklist++; | Nblacklist++; | |||
if (Nblacklist == 1000) { | if (Nblacklist == 1000) { | |||
Plog(0,"blacklist limit reached \n"); | Plog(0,"blacklist limit reached \n"); | |||
break; | break; | |||
} | } | |||
} | } | |||
fclose(fid); | fclose(fid); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |