.
OBS-URL: https://build.opensuse.org/package/show/shells/ksh?expand=0&rev=195
This commit is contained in:
parent
d8d594c0ac
commit
2a65a9050a
3
ksh.spec
3
ksh.spec
@ -135,6 +135,8 @@ Patch35: ksh93-uninitialized.dif
|
||||
Patch36: ksh93-fs3d.dif
|
||||
# PATCH-FIX-UPSTREAM Ouch ... use memmove instead of memcopy on overlapping areas
|
||||
Patch37: ksh93-sfio.dif
|
||||
# PATCH-FIX-SUSE Do not crash wenn cwd is gone
|
||||
Patch38: ksh93-pwd.dif
|
||||
Patch42: ksh-locale.patch
|
||||
|
||||
%description
|
||||
@ -226,6 +228,7 @@ fi
|
||||
%patch35
|
||||
%patch36
|
||||
%patch37
|
||||
%patch38
|
||||
|
||||
%build
|
||||
#
|
||||
|
13
ksh93-pwd.dif
Normal file
13
ksh93-pwd.dif
Normal file
@ -0,0 +1,13 @@
|
||||
--- src/cmd/ksh93/sh/subshell.c
|
||||
+++ src/cmd/ksh93/sh/subshell.c 2013-11-29 14:46:37.966735617 +0000
|
||||
@@ -549,7 +549,9 @@ Sfio_t *sh_subshell(Shell_t *shp,Shnode_
|
||||
#ifdef _lib_fchdir
|
||||
for(xp=sp->prev; xp; xp=xp->prev)
|
||||
{
|
||||
- if(xp->pwdfd>0 && strcmp(xp->pwd,shp->pwd)==0)
|
||||
+ if (!shp->pwd)
|
||||
+ break;
|
||||
+ if(xp->pwdfd>0 && xp->pwd && strcmp(xp->pwd,shp->pwd)==0)
|
||||
{
|
||||
sp->pwdfd = xp->pwdfd;
|
||||
break;
|
Loading…
Reference in New Issue
Block a user