search for: 567393f

Displaying 1 result from an estimated 1 matches for "567393f".

Did you mean: 517393
2007 Jan 27
0
[PATCH] dash: Fix "pwd -P" breakage due to getcwd(0, 0) usage
...repo and branch: git://git.altlinux.org/people/vsu/packages/klibc.git upstream-fixes (also available over http: and rsync:, but the repo is fully packed). usr/dash/cd.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/dash/cd.c b/usr/dash/cd.c index 1849c69..567393f 100644 --- a/usr/dash/cd.c +++ b/usr/dash/cd.c @@ -251,8 +251,9 @@ inline STATIC char * getpwd() { - char *dir = getcwd(0, 0); - return dir ? dir : nullstr; + char buf[PATH_MAX]; + char *dir = getcwd(buf, sizeof(buf)); + return dir ? savestr(dir) : nullstr; } int -- 1.5.0.rc1.gbcae