tag | 283f1dd8ff25a1515241e5a0df55ed22ed511cab | |
---|---|---|
tagger | H. Peter Anvin <hpa@zytor.com> | Thu Jan 01 00:00:00 1970 +0000 |
object | 6ab1869fc7bf09d953068f150844ef8bf1e6a813 |
Released on Sat, 27 Jan 2007 19:00:03 +0000
commit | 6ab1869fc7bf09d953068f150844ef8bf1e6a813 | [log] [tgz] |
---|---|---|
author | Sergey Vlasov <vsu@altlinux.ru> | Sat Jan 27 19:29:12 2007 +0300 |
committer | Sergey Vlasov <vsu@altlinux.ru> | Sat Jan 27 19:29:12 2007 +0300 |
tree | 14ab7d8513f0a2bdcf8ed2193d151f3379da2058 | |
parent | 926d1bc9d3e20d3aeae1b948a643ef9eb6bdbe86 [diff] |
[klibc] dash: Fix "pwd -P" breakage due to getcwd(0, 0) usage The getpwd() function in dash assumed than getcwd(0, 0) will allocate the buffer dynamically using malloc(); however, this glibc extension is not implemented by klibc. Make getpwd() use a temporary buffer and invoke savestr() itself instead of relying on a nonstandard extension. Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>