From 6e7fe9f0ea121cf55fdb0bbda27f0e82dc1daab6 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 23 Nov 2008 00:56:30 +0000 Subject: [PATCH] COmpile fix. buf does not exist anymore and is no more needed. --- libmisc/chowntty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libmisc/chowntty.c b/libmisc/chowntty.c index 6cd0383e8..8f8a3b153 100644 --- a/libmisc/chowntty.c +++ b/libmisc/chowntty.c @@ -77,8 +77,7 @@ void chown_tty (const struct passwd *info) fchmod (STDIN_FILENO, getdef_num ("TTYPERM", 0600))) { int err = errno; - snprintf (buf, sizeof buf, _("Unable to change tty stdin")); - perror (buf); + perror (_("Unable to change tty stdin")); SYSLOG ((LOG_WARN, "unable to change tty stdin for user `%s'\n", info->pw_name)); -- 2.47.2