richardlehane / siegfried

signature-based file format identification
http://www.itforarchivists.com/siegfried
Apache License 2.0
224 stars 30 forks source link

file scan hangs on files that don't have read permissions #113

Closed richardlehane closed 6 years ago

richardlehane commented 6 years ago

(reported by Greg Lepore): I've also notice that Siegfried has an issue when attempting to scan a file that it doesn't have read permissions on. sf just hangs:

desktop:~/Downloads/formats/test/temp$ chmod 333 viewport.bmp desktop:~/Downloads/formats/test/temp$ sf viewport.bmp [FILE] //Downloads/formats/test/temp/viewport.bmp [ERROR] open viewport.bmp: permission denied

Have to kill the process manually. The same thing happens with -coe.

fozboz commented 6 years ago

Confirmed in server mode too.