If /proc/#/fd points to a path which has component removed, fuser
will complain like "Cannot stat file /proc/29322/fd/16: Not a
directory". Looks like it can be disabled just like commit
898dc70a1f
did.
Signed-off-by: Craig Small <csmall@enc.com.au>
pid, dirname, direntry->d_name);
if (timeout(stat, filepath, &st, 5) != 0) {
- if (errno != ENOENT) {
+ if (errno != ENOENT && errno != ENOTDIR) {
fprintf(stderr, _("Cannot stat file %s: %s\n"),
filepath, strerror(errno));
}