diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:59:28 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-01 14:59:28 +0000 |
commit | 54c2e843134660a26a8923517d09519ce884c422 (patch) | |
tree | d338e64c26d86c31821227b5e62daf1144fdd1f1 /expect-5.45-fd-leak.patch | |
parent | 620ca363f3f7629f6b720c849aeb7a66a3e05ea0 (diff) |
automatic import of expectopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'expect-5.45-fd-leak.patch')
-rw-r--r-- | expect-5.45-fd-leak.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/expect-5.45-fd-leak.patch b/expect-5.45-fd-leak.patch new file mode 100644 index 0000000..459a1f6 --- /dev/null +++ b/expect-5.45-fd-leak.patch @@ -0,0 +1,12 @@ +diff -up expect5.45/exp_clib.c.orig expect5.45/exp_clib.c +--- expect5.45/exp_command.c.orig 2014-09-04 12:12:21.075837835 +0200 ++++ expect5.45/exp_command.c 2014-09-04 12:13:39.098593465 +0200 +@@ -1161,7 +1161,7 @@ Exp_SpawnObjCmd( + /* if stty finds dev(stderr) != dev(stdout) */ + + /* save error fd while we're setting up new one */ +- errorfd = fcntl(2,F_DUPFD,3); ++ errorfd = fcntl(2,F_DUPFD_CLOEXEC,3); + /* and here is the macro to restore it */ + #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);} + |