aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 22:04:09 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-18 22:04:09 +0000
commit89f0b3486dfea233e6000f9af95b39a3ea7fd96e (patch)
treefc0d65e0d33b5b526b0d44d4c4da8143be3b53b1 /loginutils
parent61126ab30a90b74e45a79ccb97074ab71afa6054 (diff)
downloadbusybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.gz
busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.bz2
busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.zip
rodata cleanup. "unable to" == "cannot". -300 bytes
Diffstat (limited to 'loginutils')
-rw-r--r--loginutils/login.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/loginutils/login.c b/loginutils/login.c
index 2ad52c63e..263a5a0a5 100644
--- a/loginutils/login.c
+++ b/loginutils/login.c
@@ -260,11 +260,11 @@ int login_main(int argc, char **argv)
260 USE_FEATURE_UTMP( 260 USE_FEATURE_UTMP(
261 safe_strncpy(utent.ut_host, opt_host, sizeof(utent.ut_host)); 261 safe_strncpy(utent.ut_host, opt_host, sizeof(utent.ut_host));
262 ) 262 )
263 snprintf(fromhost, sizeof(fromhost)-1, " on `%.100s' from " 263 snprintf(fromhost, sizeof(fromhost)-1, " on '%.100s' from "
264 "`%.200s'", short_tty, opt_host); 264 "'%.200s'", short_tty, opt_host);
265 } 265 }
266 else 266 else
267 snprintf(fromhost, sizeof(fromhost)-1, " on `%.100s'", short_tty); 267 snprintf(fromhost, sizeof(fromhost)-1, " on '%.100s'", short_tty);
268 268
269 bb_setpgrp; 269 bb_setpgrp;
270 270
@@ -302,7 +302,7 @@ auth_failed:
302 bb_do_delay(FAIL_DELAY); 302 bb_do_delay(FAIL_DELAY);
303 puts("Login incorrect"); 303 puts("Login incorrect");
304 if (++count == 3) { 304 if (++count == 3) {
305 syslog(LOG_WARNING, "invalid password for `%s'%s", 305 syslog(LOG_WARNING, "invalid password for '%s'%s",
306 username, fromhost); 306 username, fromhost);
307 return EXIT_FAILURE; 307 return EXIT_FAILURE;
308 } 308 }
@@ -319,7 +319,7 @@ auth_failed:
319 security_context_t old_tty_sid, new_tty_sid; 319 security_context_t old_tty_sid, new_tty_sid;
320 320
321 if (get_default_context(username, NULL, &user_sid)) { 321 if (get_default_context(username, NULL, &user_sid)) {
322 bb_error_msg_and_die("unable to get SID for %s", 322 bb_error_msg_and_die("cannot get SID for %s",
323 username); 323 username);
324 } 324 }
325 if (getfilecon(full_tty, &old_tty_sid) < 0) { 325 if (getfilecon(full_tty, &old_tty_sid) < 0) {