diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-20 03:48:22 +0300 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-20 03:48:22 +0300 |
commit | 4a5cf16a368bf513a2c2e3b27821a37d3df3cf89 (patch) | |
tree | 18b0ca034b8b5424e51d6f1684f2805d5041aad4 /loginutils/login.c | |
parent | 6a353c81587e3050b7e48fe522b517de9b29e2f3 (diff) |
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)
Diffstat (limited to 'loginutils/login.c')
-rw-r--r-- | loginutils/login.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); } } |