uwrap: Fix debug line in uwrap_init()
authorAndreas Schneider <asn@samba.org>
Fri, 30 Oct 2015 12:36:04 +0000 (13:36 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 5 Nov 2015 08:23:15 +0000 (09:23 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/uid_wrapper/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);