ref: 71a993b4ca2c455f491aad669e3a4ac2979f6bb8
parent: 2ea733776369835097d140c9d1c1ca9bdd0ac7bb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Jan 3 14:37:08 EST 2023
tlsclient: keep stderr
--- a/sys/src/cmd/tlsclient.c
+++ b/sys/src/cmd/tlsclient.c
@@ -150,8 +150,8 @@
if(*argv){
dup(fd, 0);
dup(fd, 1);
- if(fd > 1)
- close(fd);
+ /* dup(fd, 2); keep stderr */
+ if(fd > 2) close(fd);
exec(*argv, argv);
sysfatal("exec: %r");
}