projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3f70b87
)
- -4b and use proper define; add license note
author
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Thu, 4 Dec 2008 14:19:21 +0000
(14:19 -0000)
committer
Bernhard Reutner-Fischer
<rep.dot.nop@gmail.com>
Thu, 4 Dec 2008 14:19:21 +0000
(14:19 -0000)
loginutils/cryptpw.c
patch
|
blob
|
history
diff --git
a/loginutils/cryptpw.c
b/loginutils/cryptpw.c
index c179e35cfabecaa3c3a19bff6d8af6e7f71123c6..4eec02b7831a783b973adfd659afdb2854bf4808 100644
(file)
--- a/
loginutils/cryptpw.c
+++ b/
loginutils/cryptpw.c
@@
-1,6
+1,8
@@
/* vi: set sw=4 ts=4: */
/*
/* vi: set sw=4 ts=4: */
/*
- * cryptpw.c
+ * cryptpw.c - output a crypt(3)ed password to stdout.
+ *
+ * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
*
* Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no>
* mkpasswd compatible options added by Bernhard Reutner-Fischer
*
* Cooked from passwd.c by Thomas Lundquist <thomasez@zelow.no>
* mkpasswd compatible options added by Bernhard Reutner-Fischer
@@
-103,8
+105,8
@@
int cryptpw_main(int argc UNUSED_PARAM, char **argv)
argv[0] ? argv[0] : (
/* Only mkpasswd, and only from tty, prompts.
* Otherwise it is a plain read. */
argv[0] ? argv[0] : (
/* Only mkpasswd, and only from tty, prompts.
* Otherwise it is a plain read. */
- (isatty(
0
) && applet_name[0] == 'm')
- ? bb_ask
(STDIN_FILENO, 0,
"Password: ")
+ (isatty(
STDIN_FILENO
) && applet_name[0] == 'm')
+ ? bb_ask
_stdin(
"Password: ")
: xmalloc_fgetline(stdin)
),
salt, 1));
: xmalloc_fgetline(stdin)
),
salt, 1));