]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/idmapd/idmapd.c
rpc.idmapd: Ignore open failures in dirscancb()
[nfs-utils.git] / utils / idmapd / idmapd.c
index 9d66225e01d7642aa40223bbacccc0a4a31c8292..beba9c4517076e156ad697f6b66d362b8d444aae 100644 (file)
@@ -424,7 +424,8 @@ dirscancb(int UNUSED(fd), short UNUSED(which), void *data)
                            pipefsdir, ents[i]->d_name);
 
                        if ((ic->ic_dirfd = open(path, O_RDONLY, 0)) == -1) {
-                               xlog_warn("dirscancb: open(%s): %s", path, strerror(errno));
+                               if (verbose > 0)
+                                       xlog_warn("dirscancb: open(%s): %s", path, strerror(errno));
                                free(ic);
                                goto out;
                        }