Accepting request 65932 from shells

Accepted submit request 65932 from user coolo

OBS-URL: https://build.opensuse.org/request/show/65932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ksh?expand=0&rev=54
This commit is contained in:
Berthold Gunreben 2011-04-05 06:31:00 +00:00 committed by Git OBS Bridge
commit 6a8cec7490
4 changed files with 35 additions and 0 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Mar 4 16:15:16 CET 2011 - werner@suse.de
- Avoid to export local variables from real subshells
-------------------------------------------------------------------
Tue Feb 22 13:04:48 UTC 2011 - werner@suse.de
- Make shell functions POSIX compliant (bnc#661875)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Oct 27 14:14:28 CEST 2010 - werner@suse.de Wed Oct 27 14:14:28 CEST 2010 - werner@suse.de

View File

@ -71,6 +71,8 @@ Patch16: ksh93-leak.dif
Patch17: ksh93-ifs.dif Patch17: ksh93-ifs.dif
Patch18: ksh93-fdfn.dif Patch18: ksh93-fdfn.dif
Patch19: ksh93-fdleak.dif Patch19: ksh93-fdleak.dif
Patch20: ksh93-argv0.dif
Patch21: ksh93-export.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
@ -141,6 +143,8 @@ find share/ -type d -a -empty | xargs -r rm -vrf
%patch17 %patch17
%patch18 %patch18
%patch19 %patch19
%patch20
%patch21
%build %build
typeset -i IGNORED=0x$(ps --no-headers -o ignored $$) typeset -i IGNORED=0x$(ps --no-headers -o ignored $$)

10
ksh93-argv0.dif Normal file
View File

@ -0,0 +1,10 @@
--- src/cmd/ksh93/bltins/misc.c
+++ src/cmd/ksh93/bltins/misc.c 2011-02-22 13:03:35.783936889 +0000
@@ -273,7 +273,6 @@ int b_dot_cmd(register int n,char *ar
shp->st.self = &savst;
shp->topscope = (Shscope_t*)shp->st.self;
prevscope->save_tree = shp->var_tree;
- shp->st.cmdname = argv[0];
if(np)
shp->st.filename = np->nvalue.rp->fname;
nv_putval(SH_PATHNAMENOD, shp->st.filename ,NV_NOFREE);

11
ksh93-export.dif Normal file
View File

@ -0,0 +1,11 @@
--- src/cmd/ksh93/sh/subshell.c
+++ src/cmd/ksh93/sh/subshell.c 2011-03-04 15:13:49.867926146 +0000
@@ -235,7 +235,7 @@ Namval_t *sh_assignok(register Namval_t
if(!sp->shpwd || np==SH_LEVELNOD || np==L_ARGNOD || np==SH_SUBSCRNOD || np==SH_NAMENOD)
return(np);
/* don't bother to save if in newer scope */
- if(sp->var!=shp->var_tree && shp->last_root==shp->var_tree)
+ if(sp->var!=shp->var_tree && sp->var!=shp->var_base && shp->last_root==shp->var_tree)
return(np);
if((ap=nv_arrayptr(np)) && (mp=nv_opensub(np)))
{