aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/nc/compat/readpassphrase.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/nc/compat/readpassphrase.c b/apps/nc/compat/readpassphrase.c
index f3aa248..2a1e9ef 100644
--- a/apps/nc/compat/readpassphrase.c
+++ b/apps/nc/compat/readpassphrase.c
@@ -94,6 +94,8 @@ restart:
94 } 94 }
95 input = STDIN_FILENO; 95 input = STDIN_FILENO;
96 output = STDERR_FILENO; 96 output = STDERR_FILENO;
97 } else {
98 (void)fcntl(input, F_SETFD, FD_CLOEXEC);
97 } 99 }
98 100
99 /* 101 /*