libbb: rename bb_ask -> bb_ask_noecho, bb_ask_confirmation -> bb_ask_y_confirmation
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
2f094ae821
commit
77cb6b99a4
11 changed files with 24 additions and 24 deletions
|
@ -163,8 +163,8 @@ void FAST_FUNC encode_base64(char *fname, const char *text, const char *eol)
|
|||
void FAST_FUNC get_cred_or_die(int fd)
|
||||
{
|
||||
if (isatty(fd)) {
|
||||
G.user = xstrdup(bb_ask(fd, /* timeout: */ 0, "User: "));
|
||||
G.pass = xstrdup(bb_ask(fd, /* timeout: */ 0, "Password: "));
|
||||
G.user = xstrdup(bb_ask_noecho(fd, /* timeout: */ 0, "User: "));
|
||||
G.pass = xstrdup(bb_ask_noecho(fd, /* timeout: */ 0, "Password: "));
|
||||
} else {
|
||||
G.user = xmalloc_reads(fd, /* maxsize: */ NULL);
|
||||
G.pass = xmalloc_reads(fd, /* maxsize: */ NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue