summaryrefslogtreecommitdiffstats
path: root/utils/gssd/gssd.c
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2016-03-19 13:13:10 -0400
committerSteve Dickson <steved@redhat.com>2016-03-19 14:18:26 -0400
commite0eb6ebb5265af7b43262761524510f473a30ff9 (patch)
tree0a1320729810c6bd97a622350d52e4b039f34bb7 /utils/gssd/gssd.c
parentc4940fad2a73481cad67732746a4e2bb74e8d32e (diff)
downloadnfs-utils-e0eb6ebb5265af7b43262761524510f473a30ff9.tar.gz
nfs-utils-e0eb6ebb5265af7b43262761524510f473a30ff9.tar.xz
nfs-utils-e0eb6ebb5265af7b43262761524510f473a30ff9.zip
gssd: ignore pipe directories that do not exist
Back when commit aba5ea5c and commit 55197c98 happen that replaced dnotify with inotify the ignoring of non-existent upcall directories got dropped. The patch adds it back and stops following error log ERROR: inotify_add_watch failed for nfs/clntXX: No such file or directory Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/gssd.c')
-rw-r--r--utils/gssd/gssd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c
index e7cb07f..7ba27b1 100644
--- a/utils/gssd/gssd.c
+++ b/utils/gssd/gssd.c
@@ -400,8 +400,9 @@ gssd_get_clnt(struct topdir *tdi, const char *name)
clp->wd = inotify_add_watch(inotify_fd, clp->relpath, IN_CREATE | IN_DELETE);
if (clp->wd < 0) {
- printerr(0, "ERROR: inotify_add_watch failed for %s: %s\n",
- clp->relpath, strerror(errno));
+ if (errno != ENOENT)
+ printerr(0, "ERROR: inotify_add_watch failed for %s: %s\n",
+ clp->relpath, strerror(errno));
goto out;
}