pauldreik / rdfind

find duplicate files utility
Other
980 stars 79 forks source link

"Permission denied" is common and should not have a scary message #71

Open Redsandro opened 3 years ago

Redsandro commented 3 years ago

I was running rdfind on a backup drive. I got hundreds of these scary messages:

Dirlist.cc::handlepossiblefile: This should never happen. FIXME! details on the next row:

Comments in the code suggests files were possibly open and written to by someone else.

https://github.com/pauldreik/rdfind/blob/fa7752d6205e2071a758e7aa2d4e1c541aa96a6e/Dirlist.cc#L162-L169

Turns out those dirs were simply owned by other users. Workaround: use sudo.

I suggest a permission/user check and a less alarming error message.

pauldreik commented 3 years ago

I agree this text is too alarming.