Dr. Werner Fink 2013-11-29 15:45:40 +00:00 committed by Git OBS Bridge
parent d8d594c0ac
commit 2a65a9050a
2 changed files with 16 additions and 0 deletions

View File

@ -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
View 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;