diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-10 20:37:29 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2017-01-10 20:37:29 +0100 |
commit | a6f2235a920a71cfc36ee4681ef804354326476c (patch) | |
tree | 68914801cb4b3383af93235dea87643311bf8850 /nlplug-findfs.c | |
parent | 5a84d57404bdc77ec86eb0af2c884b6176626d0b (diff) | |
download | mkinitfs-a6f2235a920a71cfc36ee4681ef804354326476c.tar.bz2 mkinitfs-a6f2235a920a71cfc36ee4681ef804354326476c.tar.xz |
nlplug-findfs: dont return error on successful read pass
We could sucessfully read the password but fail to reset the tty. If
that happens, then just warn, but return success.
Diffstat (limited to 'nlplug-findfs.c')
-rw-r--r-- | nlplug-findfs.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c index db39c62..71df4c7 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -535,7 +535,6 @@ static int read_pass(char *pass, size_t pass_size) if (isatty(STDIN_FILENO)) { if (tcsetattr(STDIN_FILENO, TCSANOW, &old_flags) < 0) { warn("tcsetattr"); - return r; } }// else { // fprintf(stderr, "The program isn't executed in a TTY, the echo-reenabling has been skipped.\n"); |