From 4a5cf16a368bf513a2c2e3b27821a37d3df3cf89 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Mon, 20 Nov 2006 00:48:22 +0000 Subject: login: use %s - we know that string is not too long there ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly (was requiring '-c 6' with mandatory space) --- loginutils/login.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'loginutils') diff --git a/loginutils/login.c b/loginutils/login.c index 263a5a0a5..bd3c112b9 100644 --- a/loginutils/login.c +++ b/loginutils/login.c @@ -323,16 +323,16 @@ auth_failed: username); } if (getfilecon(full_tty, &old_tty_sid) < 0) { - bb_perror_msg_and_die("getfilecon(%.100s) failed", + bb_perror_msg_and_die("getfilecon(%s) failed", full_tty); } if (security_compute_relabel(user_sid, old_tty_sid, SECCLASS_CHR_FILE, &new_tty_sid) != 0) { - bb_perror_msg_and_die("security_change_sid(%.100s) failed", + bb_perror_msg_and_die("security_change_sid(%s) failed", full_tty); } if (setfilecon(full_tty, new_tty_sid) != 0) { - bb_perror_msg_and_die("chsid(%.100s, %s) failed", + bb_perror_msg_and_die("chsid(%s, %s) failed", full_tty, new_tty_sid); } } -- cgit v1.2.3