]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - utils/gssd/svcgssd.c
Set the verbosity level in both the librpcsecgss and
[nfs-utils.git] / utils / gssd / svcgssd.c
index f97dcd37cfadf9c1fbf2021cc524b19f0b013a40..69d2a6966946b287fed1bcdfef0849cb5a844dfb 100644 (file)
@@ -132,7 +132,11 @@ release_parent(void)
        int status;
 
        if (pipefds[1] > 0) {
-               write(pipefds[1], &status, 1);
+               if (write(pipefds[1], &status, 1) != 1) {
+                       printerr(1, 
+                               "WARN: writing to parent pipe failed: errno %d (%s)\n",
+                               errno, strerror(errno));
+               }
                close(pipefds[1]);
                pipefds[1] = -1;
        }
@@ -204,6 +208,8 @@ main(int argc, char *argv[])
 
        initerr(progname, verbosity, fg);
 #ifdef HAVE_AUTHGSS_SET_DEBUG_LEVEL
+       if (verbosity && rpc_verbosity == 0)
+               rpc_verbosity = verbosity;
        authgss_set_debug_level(rpc_verbosity);
 #else
        if (rpc_verbosity > 0)
@@ -211,6 +217,8 @@ main(int argc, char *argv[])
                            "support setting debug level\n");
 #endif
 #ifdef HAVE_NFS4_SET_DEBUG
+               if (verbosity && idmap_verbosity == 0)
+                       idmap_verbosity = verbosity;
         nfs4_set_debug(idmap_verbosity, NULL);
 #else
        if (idmap_verbosity > 0)