From a6f2235a920a71cfc36ee4681ef804354326476c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 10 Jan 2017 20:37:29 +0100 Subject: 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. --- nlplug-findfs.c | 1 - 1 file changed, 1 deletion(-) 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"); -- cgit v1.2.3