]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
privsep: Log the user chrooting as
authorRoy Marples <roy@marples.name>
Wed, 20 May 2020 20:43:20 +0000 (21:43 +0100)
committerRoy Marples <roy@marples.name>
Wed, 20 May 2020 20:43:20 +0000 (21:43 +0100)
src/privsep.c

index 9ff89ed370b73bb34c2cd7a26bd990af990ea54f..92804a99cac6c7a28a737f037fd425ab073ad341 100644 (file)
@@ -113,7 +113,7 @@ ps_dropprivs(struct dhcpcd_ctx *ctx)
        struct passwd *pw = ctx->ps_user;
 
        if (!(ctx->options & DHCPCD_FORKED))
-               logdebugx("chrooting to `%s'", pw->pw_dir);
+               logdebugx("chrooting to `%s' as %s", pw->pw_dir, pw->pw_name);
        if (chroot(pw->pw_dir) == -1)
                logerr("%s: chroot `%s'", __func__, pw->pw_dir);
        if (chdir("/") == -1)