]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libuser: fix misleading error message
authorChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 30 Mar 2026 17:44:13 +0000 (13:44 -0400)
committerChristian Goeschel Ndjomouo <cgoesc2@wgu.edu>
Mon, 30 Mar 2026 17:44:13 +0000 (13:44 -0400)
When setting the effective user fails the code prints a
misleading error message stating that 'group' privileges
could not be dropped, but it should state 'user' instead.

Signed-off-by: Christian Goeschel Ndjomouo <cgoesc2@wgu.edu>
login-utils/libuser.c

index b11fadc1ca8a25a2009522f9726c69366e67e74b..0507283039e52b9f4a8eb970778f619b4fab7cd5 100644 (file)
@@ -28,7 +28,7 @@ static int auth_lu(const char *service_name, struct lu_context *ctx, uid_t uid,
                if (setegid(getgid()) == -1)
                        err(EXIT_FAILURE, _("Couldn't drop group privileges"));
                if (seteuid(getuid()) == -1)
-                       err(EXIT_FAILURE, _("Couldn't drop group privileges"));
+                       err(EXIT_FAILURE, _("Couldn't drop user privileges"));
                return TRUE;
        }