aboutsummaryrefslogtreecommitdiffstats
path: root/POSIX
diff options
context:
space:
mode:
authorPatrick Schaaf <brianofish@gmail.com>2012-04-02 12:07:46 +0200
committerPatrick Schaaf <brianofish@gmail.com>2012-04-02 12:07:46 +0200
commit791237e44695d2ee123c8a6f665ef074f5fadfbb (patch)
tree9c136cbad4da19f06e3e651140ea04f2363bf02f /POSIX
parenta818bf11e8bbee9b53f0c67de7f7441d998305ab (diff)
downloadexternal_bash-791237e44695d2ee123c8a6f665ef074f5fadfbb.zip
external_bash-791237e44695d2ee123c8a6f665ef074f5fadfbb.tar.gz
external_bash-791237e44695d2ee123c8a6f665ef074f5fadfbb.tar.bz2
bash: fix "getcwd: cannot access parent directories: Math result..."
In get_working_directory(), the getcwd call in the __ANDROID__ workaround case was obviously wrong, having sizeof(char *) as a length argument instead of the length of the malloced string itself. Also, no check for malloc failure was there. With this fix, tested on maguro, using bash with the usual prompt containing pwd references, as well as the pwd bash builtin itself, no longer spew these annoying messages mentioned in the title. Also made a small change to sh_invalidnum() to fix compile warnings. Change-Id: I9546e07731a251f80e410935619ddcf0873694af
Diffstat (limited to 'POSIX')
0 files changed, 0 insertions, 0 deletions