diff options
author | Han Pingtian <hanpt@linux.vnet.ibm.com> | 2012-12-20 11:31:50 +0800 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2013-02-21 22:55:08 +1100 |
commit | f496e5865e54101ad57a3930b4adbf56ff623ae0 (patch) | |
tree | f51726c5e9a16cfe1ef780b5614279860b3d41da | |
parent | 73989c565a012397b93e7a314ab273e8578472f5 (diff) |
doesn't complain about "not a directory"
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>
-rw-r--r-- | src/fuser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuser.c b/src/fuser.c index 0c773fe..e82d6e0 100644 --- a/src/fuser.c +++ b/src/fuser.c @@ -1411,7 +1411,7 @@ check_dir(const pid_t pid, const char *dirname, struct device_list *dev_head, 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)); } |