aboutsummaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorKartik Naik <kartik@bugqore.com>2026-07-29 18:15:05 +0530
committerKartik Naik <kartik@bugqore.com>2026-07-29 18:15:05 +0530
commit2f042c86e9dfadd8d74f06fe2994dd0ed7023a03 (patch)
treecc7e85130f26668bf30cd241799e3281ae4460b9 /apps
parent3d686a7cbd84221fde5d7e03fa47896f6abf1d6c (diff)
downloadportable-2f042c86e9dfadd8d74f06fe2994dd0ed7023a03.tar.gz
portable-2f042c86e9dfadd8d74f06fe2994dd0ed7023a03.tar.bz2
portable-2f042c86e9dfadd8d74f06fe2994dd0ed7023a03.zip
set close-on-exec on the tty descriptor in readpassphrase
Diffstat (limited to 'apps')
-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 /*