summaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-16 14:17:14 +0000
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>2009-04-16 14:17:14 +0000
commitaaf4ad391333d78c73900befb9971ff26d4938d4 (patch)
treeb3ab2f96f0661f23f2b0aa7e1544fab26a31fd9b /block.c
parent69a218fc84d96f978dcea41ae4a80d367ebd9fd0 (diff)
downloadqemu-aaf4ad391333d78c73900befb9971ff26d4938d4.tar.gz
qemu-aaf4ad391333d78c73900befb9971ff26d4938d4.tar.bz2
qemu-aaf4ad391333d78c73900befb9971ff26d4938d4.zip
linux-user: fix getcwd syscall
The patch called "prefer glibc over direct syscalls" (commit 7118) has replaced the getcwd syscall with a call to the glibc. With this change, the syscall is returning -1 in error case and 0 otherwise. This is problematic as the sys_getcwd syscall should return the number of bytes written to the buffer including the '\0'. Signed-off-by: Arnaud Patard <arnaud.patard@rtp-net.org> Acked-By: Riku Voipio <riku.voipio@iki.fi> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7130 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions