Accepting request 51040 from shells

Accepted submit request 51040 from user WernerFink

OBS-URL: https://build.opensuse.org/request/show/51040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ksh?expand=0&rev=47
This commit is contained in:
Ruediger Oertel 2010-10-19 11:18:26 +00:00 committed by Git OBS Bridge
commit a27bde91bc
3 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Oct 19 13:11:24 CEST 2010 - werner@suse.de
- Close file descriptor leak caused by loading shell functions
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Oct 11 14:53:35 CEST 2010 - werner@suse.de Mon Oct 11 14:53:35 CEST 2010 - werner@suse.de

View File

@ -69,6 +69,7 @@ Patch14: ksh93-ia64.dif
Patch15: ksh93-s390.dif Patch15: ksh93-s390.dif
Patch16: ksh93-leak.dif Patch16: ksh93-leak.dif
Patch17: ksh93-ifs.dif Patch17: ksh93-ifs.dif
Patch18: ksh93-fdfn.dif
%global use_suid_exe 0 %global use_suid_exe 0
%global use_locale 1 %global use_locale 1
%global debug_memleak 0 %global debug_memleak 0
@ -137,6 +138,7 @@ find share/ -type d -a -empty | xargs -r rm -vrf
%patch15 %patch15
%patch16 %patch16
%patch17 %patch17
%patch18
%build %build
typeset -i IGNORED=0x$(ps --no-headers -o ignored $$) typeset -i IGNORED=0x$(ps --no-headers -o ignored $$)

10
ksh93-fdfn.dif Normal file
View File

@ -0,0 +1,10 @@
--- src/cmd/ksh93/sh/path.c
+++ src/cmd/ksh93/sh/path.c 2010-10-19 10:57:53.556425877 +0000
@@ -747,6 +747,7 @@ int path_search(register const char *nam
return(1);
}
funload(shp,fno,name);
+ sh_close(fno);
return(1);
}
*stakptr(PATH_OFFSET) = 0;