]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
su: Remove obsolete code comment
authorTobias Stoeckmann <tobias@stoeckmann.org>
Fri, 3 Apr 2026 07:48:55 +0000 (09:48 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 4 Apr 2026 10:22:31 +0000 (12:22 +0200)
This su implementation always depends on PAM.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
login-utils/su-common.c

index d7dd160dd5060095666961d142f6b1c2e98b68bf..b24cc717fff5d351fa97bd2b242caa97995bf0a2 100644 (file)
@@ -599,8 +599,6 @@ static void create_watching_parent(struct su_context *su)
 
        /* In the parent watch the child.  */
 
-       /* su without pam support does not have a helper that keeps
-          sitting on any directory so let's go to /.  */
        if (chdir("/") != 0)
                warn(_("cannot change directory to %s"), "/");
 #ifdef USE_PTY