aboutsummaryrefslogtreecommitdiff
path: root/libbb/bb_askpass.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-11-30 16:41:15 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-11-30 16:41:15 +0000
commitab24e18c7a32ee1637be19f239e9dd9d7c7f6534 (patch)
tree2646cfd66b5a8d279ad360aaa989a814eeecfd64 /libbb/bb_askpass.c
parentb8bb27c7ea37c9885b1ded36d0f7807a09ede712 (diff)
downloadbusybox-w32-ab24e18c7a32ee1637be19f239e9dd9d7c7f6534.tar.gz
busybox-w32-ab24e18c7a32ee1637be19f239e9dd9d7c7f6534.tar.bz2
busybox-w32-ab24e18c7a32ee1637be19f239e9dd9d7c7f6534.zip
passwd: rework:
* do not make backup copy by copying (just retain old file) * correctly fall back to /etc/passwd if user is not in shadow * fix bug with overlong passwd entries * be permissive on some kinds of failures * reduce stack usage * code size: -500 bytes
Diffstat (limited to 'libbb/bb_askpass.c')
-rw-r--r--libbb/bb_askpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/bb_askpass.c b/libbb/bb_askpass.c
index cf384e52b..097a0a290 100644
--- a/libbb/bb_askpass.c
+++ b/libbb/bb_askpass.c
@@ -60,7 +60,7 @@ char *bb_askpass(int timeout, const char * prompt)
60 (read did not overwrite it) */ 60 (read did not overwrite it) */
61 do { 61 do {
62 if (passwd[i] == '\r' || passwd[i] == '\n') 62 if (passwd[i] == '\r' || passwd[i] == '\n')
63 passwd[i] = 0; 63 passwd[i] = '\0';
64 } while (passwd[i++]); 64 } while (passwd[i++]);
65 } 65 }
66 66