Displaying 1 result from an estimated 1 matches for "gbcae".
Did you mean:
bcat
2007 Jan 27
0
[PATCH] dash: Fix "pwd -P" breakage due to getcwd(0, 0) usage
...49c69..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