diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-07 13:22:52 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-04-07 13:22:52 +0200 |
commit | 32c3e3a44cb6ae2b0ff949e9f60fa0405f081dc3 (patch) | |
tree | 32fa4cc8f164ea093ee4a0d45ac9128fe9bbf2f5 /networking/ftpd.c | |
parent | 9fe8bd8d61d8cf187ad40affb1f69fe72ae74744 (diff) | |
download | busybox-w32-32c3e3a44cb6ae2b0ff949e9f60fa0405f081dc3.tar.gz busybox-w32-32c3e3a44cb6ae2b0ff949e9f60fa0405f081dc3.tar.bz2 busybox-w32-32c3e3a44cb6ae2b0ff949e9f60fa0405f081dc3.zip |
wget,ftpd: shorten and reuse strings
function old new delta
wget_main 2382 2386 +4
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/0 up/down: 4/0) Total: 4 bytes
text data bss dec hex filename
934228 477 7296 942001 e5fb1 busybox_old
934202 477 7296 941975 e5f97 busybox_unstripped
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r-- | networking/ftpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 8abbf7f57..e289a6051 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -1263,7 +1263,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
1263 | break; /* does not even ask for password */ | 1263 | break; /* does not even ask for password */ |
1264 | } | 1264 | } |
1265 | pw = getpwnam(G.ftp_arg); | 1265 | pw = getpwnam(G.ftp_arg); |
1266 | cmdio_write_raw(STR(FTP_GIVEPWORD)" Please specify password\r\n"); | 1266 | cmdio_write_raw(STR(FTP_GIVEPWORD)" Specify password\r\n"); |
1267 | } else if (cmdval == const_PASS) { | 1267 | } else if (cmdval == const_PASS) { |
1268 | if (check_password(pw, G.ftp_arg) > 0) { | 1268 | if (check_password(pw, G.ftp_arg) > 0) { |
1269 | break; /* login success */ | 1269 | break; /* login success */ |
@@ -1274,7 +1274,7 @@ int ftpd_main(int argc UNUSED_PARAM, char **argv) | |||
1274 | WRITE_OK(FTP_GOODBYE); | 1274 | WRITE_OK(FTP_GOODBYE); |
1275 | return 0; | 1275 | return 0; |
1276 | } else { | 1276 | } else { |
1277 | cmdio_write_raw(STR(FTP_LOGINERR)" Login with USER and PASS\r\n"); | 1277 | cmdio_write_raw(STR(FTP_LOGINERR)" Login with USER+PASS\r\n"); |
1278 | } | 1278 | } |
1279 | } | 1279 | } |
1280 | WRITE_OK(FTP_LOGINOK); | 1280 | WRITE_OK(FTP_LOGINOK); |