diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-06 19:02:46 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-09-06 19:02:46 +0000 |
commit | 6d655be5df5a559253a3769f294a6255535ad3fd (patch) | |
tree | 4342fd4f88b84459ef5c2c2c2c6fb86863a7112f /loginutils/passwd.c | |
parent | 3538b9a8822421b7c8596a33a917dcf2f99c92b7 (diff) | |
download | busybox-w32-6d655be5df5a559253a3769f294a6255535ad3fd.tar.gz busybox-w32-6d655be5df5a559253a3769f294a6255535ad3fd.tar.bz2 busybox-w32-6d655be5df5a559253a3769f294a6255535ad3fd.zip |
removed a lot of trailing \n in bb_msg() calls. It is added
automatically by function itself.
Diffstat (limited to 'loginutils/passwd.c')
-rw-r--r-- | loginutils/passwd.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/loginutils/passwd.c b/loginutils/passwd.c index aa75dd260..b0770e65c 100644 --- a/loginutils/passwd.c +++ b/loginutils/passwd.c | |||
@@ -170,11 +170,11 @@ int passwd_main(int argc, char **argv) | |||
170 | } | 170 | } |
171 | pw = getpwnam(name); | 171 | pw = getpwnam(name); |
172 | if (!pw) { | 172 | if (!pw) { |
173 | bb_error_msg_and_die("Unknown user %s\n", name); | 173 | bb_error_msg_and_die("Unknown user %s", name); |
174 | } | 174 | } |
175 | if (!amroot && pw->pw_uid != getuid()) { | 175 | if (!amroot && pw->pw_uid != getuid()) { |
176 | syslog(LOG_WARNING, "can't change pwd for `%s'", name); | 176 | syslog(LOG_WARNING, "can't change pwd for `%s'", name); |
177 | bb_error_msg_and_die("Permission denied.\n"); | 177 | bb_error_msg_and_die("Permission denied."); |
178 | } | 178 | } |
179 | if (ENABLE_FEATURE_SHADOWPASSWDS) { | 179 | if (ENABLE_FEATURE_SHADOWPASSWDS) { |
180 | struct spwd *sp = getspnam(name); | 180 | struct spwd *sp = getspnam(name); |
@@ -188,12 +188,12 @@ int passwd_main(int argc, char **argv) | |||
188 | if (!amroot) { | 188 | if (!amroot) { |
189 | if (cp[0] == '!') { | 189 | if (cp[0] == '!') { |
190 | syslog(LOG_WARNING, "password locked for `%s'", np); | 190 | syslog(LOG_WARNING, "password locked for `%s'", np); |
191 | bb_error_msg_and_die( "The password for `%s' cannot be changed.\n", np); | 191 | bb_error_msg_and_die( "The password for `%s' cannot be changed.", np); |
192 | } | 192 | } |
193 | } | 193 | } |
194 | printf("Changing password for %s\n", name); | 194 | printf("Changing password for %s\n", name); |
195 | if (new_password(pw, amroot, algo)) { | 195 | if (new_password(pw, amroot, algo)) { |
196 | bb_error_msg_and_die( "The password for %s is unchanged.\n", name); | 196 | bb_error_msg_and_die( "The password for %s is unchanged.", name); |
197 | } | 197 | } |
198 | } else if (lflg) { | 198 | } else if (lflg) { |
199 | if (crypt_passwd[0] != '!') { | 199 | if (crypt_passwd[0] != '!') { |
@@ -222,7 +222,7 @@ int passwd_main(int argc, char **argv) | |||
222 | printf("Password changed.\n"); | 222 | printf("Password changed.\n"); |
223 | } else { | 223 | } else { |
224 | syslog(LOG_WARNING, "an error occurred updating the password file"); | 224 | syslog(LOG_WARNING, "an error occurred updating the password file"); |
225 | bb_error_msg_and_die("An error occurred updating the password file.\n"); | 225 | bb_error_msg_and_die("An error occurred updating the password file."); |
226 | } | 226 | } |
227 | if (ENABLE_FEATURE_CLEAN_UP) free(myname); | 227 | if (ENABLE_FEATURE_CLEAN_UP) free(myname); |
228 | return (0); | 228 | return (0); |