uwrap: Fix debug line in uwrap_init()
authorAndreas Schneider <asn@samba.org>
Tue, 22 Sep 2015 15:06:01 +0000 (17:06 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 27 Oct 2015 13:54:07 +0000 (14:54 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/uid_wrapper.c

index 2961b879e77118ddf4a6d79671b18f0baf52c3c9..96035b06afb386faf75487db63f97b4334c6b405 100644 (file)
@@ -952,8 +952,9 @@ static void uwrap_init(void)
                id->enabled = true;
 
                UWRAP_LOG(UWRAP_LOG_DEBUG,
-                         "Enabled uid_wrapper as %s",
-                         uwrap.myuid == 0 ? "root" : "user");
+                         "Enabled uid_wrapper as %s (real uid=%u)",
+                         id->ruid == 0 ? "root" : "user",
+                         (unsigned int)uwrap.myuid);
        }
 
        UWRAP_UNLOCK(uwrap_id);