]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - term-utils/agetty.c
su, agetty: don't use program_invocation_short_name for openlog()
[thirdparty/util-linux.git] / term-utils / agetty.c
index 6059b01d014b1dc3c3e984570e86a6a9078a38a1..0fc6f151443e5ec122b4b8b991ec7654b4300961 100644 (file)
@@ -2519,7 +2519,7 @@ static void dolog(int priority
         * automatically prepended to the message. If we write directly to
         * /dev/console, we must prepend the process name ourselves.
         */
-       openlog(program_invocation_short_name, LOG_PID, LOG_AUTHPRIV);
+       openlog("agetty", LOG_PID, LOG_AUTHPRIV);
        vsyslog(priority, fmt, ap);
        closelog();
 #else