From e0eb6ebb5265af7b43262761524510f473a30ff9 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Sat, 19 Mar 2016 13:13:10 -0400 Subject: 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 --- utils/gssd/gssd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'utils/gssd/gssd.c') 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; } -- cgit