Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package expect for openSUSE:Factory checked in at 2021-05-17 18:44:50 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/expect (Old) and /work/SRC/openSUSE:Factory/.expect.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "expect" Mon May 17 18:44:50 2021 rev:30 rq:892068 version:5.45.4 Changes: -------- --- /work/SRC/openSUSE:Factory/expect/expect.changes 2021-05-06 22:51:31.843020843 +0200 +++ /work/SRC/openSUSE:Factory/.expect.new.2988/expect.changes 2021-05-17 18:44:56.460718734 +0200 @@ -1,0 +2,6 @@ +Mon May 10 13:44:24 UTC 2021 - Reinhard Max <[email protected]> + +- bsc#1183904, expect-errorfd.patch: + errorfd file descriptors should be closed when forking + +------------------------------------------------------------------- New: ---- expect-errorfd.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ expect.spec ++++++ --- /var/tmp/diff_new_pack.VZKgRe/_old 2021-05-17 18:44:56.988716494 +0200 +++ /var/tmp/diff_new_pack.VZKgRe/_new 2021-05-17 18:44:56.992716477 +0200 @@ -29,6 +29,7 @@ Patch2: expect-fixes.patch Patch3: expect-log.patch Patch4: config-guess-sub-update.patch +Patch5: expect-errorfd.patch BuildRequires: autoconf BuildRequires: tcl-devel @@ -57,6 +58,7 @@ %patch2 %patch3 %patch4 +%patch5 %build export CFLAGS="%{optflags} -fPIC -pie" ++++++ expect-errorfd.patch ++++++ Index: exp_clib.c ================================================================== --- exp_clib.c +++ exp_clib.c @@ -2043,11 +2043,16 @@ #endif /* SYSV3 */ #endif /* DO_SETSID */ /* save error fd while we're setting up new one */ +#ifdef F_DUPFD_CLOEXEC + errorfd = fcntl(2,F_DUPFD_CLOEXEC,3); +#else errorfd = fcntl(2,F_DUPFD,3); + fcntl(errorfd, F_SETFD, FD_CLOEXEC); +#endif /* F_DUPFD_CLOXEC */ /* and here is the macro to restore it */ #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);} if (exp_autoallocpty) { Index: exp_command.c ================================================================== --- exp_command.c +++ exp_command.c @@ -1159,11 +1159,16 @@ /* save stderr elsewhere to avoid BSD4.4 bogosity that warns */ /* if stty finds dev(stderr) != dev(stdout) */ /* save error fd while we're setting up new one */ +#ifdef F_DUPFD_CLOEXEC + errorfd = fcntl(2,F_DUPFD_CLOEXEC,3); +#else errorfd = fcntl(2,F_DUPFD,3); + fcntl(errorfd, F_SETFD, FD_CLOEXEC); +#endif /* F_DUPFD_CLOXEC */ /* and here is the macro to restore it */ #define restore_error_fd {close(2);fcntl(errorfd,F_DUPFD,2);} close(0); close(1);
