/[qemu]
ViewVC logotype

Revision 7130


Jump to revision: Previous Next
Author: aurel32
Date: Thu Apr 16 14:17:14 2009 UTC (14 years, 7 months ago)
Changed paths: 1
Log Message:
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>

Changed paths:

Path Details
Directorytrunk/linux-user/syscall.c modified , text changed

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.5