Accepting request 108335 from shells
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/108335 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ksh?expand=0&rev=75
This commit is contained in:
commit
a9ce6b12ce
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 27 15:24:02 UTC 2012 - werner@suse.de
|
||||||
|
|
||||||
|
- Add CLOEXEC flag on file descriptors for pipe handling (bnc#704898)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Feb 24 11:38:56 UTC 2012 - werner@suse.de
|
Fri Feb 24 11:38:56 UTC 2012 - werner@suse.de
|
||||||
|
|
||||||
|
2
ksh.spec
2
ksh.spec
@ -100,6 +100,7 @@ Patch21: ksh93-vm.dif
|
|||||||
Patch22: ksh93-limit-name-len.dif
|
Patch22: ksh93-limit-name-len.dif
|
||||||
Patch23: ksh93-foreground-prgrp.dif
|
Patch23: ksh93-foreground-prgrp.dif
|
||||||
Patch24: ksh93-builtin.dif
|
Patch24: ksh93-builtin.dif
|
||||||
|
Patch25: ksh93-twelve-cloexec.dif
|
||||||
Patch42: ksh-locale.patch
|
Patch42: ksh-locale.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -178,6 +179,7 @@ fi
|
|||||||
%patch22
|
%patch22
|
||||||
%patch23
|
%patch23
|
||||||
%patch24
|
%patch24
|
||||||
|
%patch25
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#
|
#
|
||||||
|
10
ksh93-twelve-cloexec.dif
Normal file
10
ksh93-twelve-cloexec.dif
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
--- src/cmd/ksh93/sh/xec.c
|
||||||
|
+++ src/cmd/ksh93/sh/xec.c 2012-02-27 16:06:17.838506198 +0100
|
||||||
|
@@ -108,6 +108,7 @@ static void iousepipe(Shell_t *shp)
|
||||||
|
usepipe++;
|
||||||
|
fcntl(subpipe[0],F_SETFD,FD_CLOEXEC);
|
||||||
|
subpipe[2] = fcntl(1,F_DUPFD,10);
|
||||||
|
+ fcntl(subpipe[2],F_SETFD,FD_CLOEXEC);
|
||||||
|
shp->fdstatus[subpipe[2]] = shp->fdstatus[1];
|
||||||
|
close(1);
|
||||||
|
fcntl(subpipe[1],F_DUPFD,1);
|
Loading…
x
Reference in New Issue
Block a user