[Bug 21292] New: system call "open" doesn't reject trailing slash in filenames
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Jan 9 05:15:22 CST 2010
http://bugs.winehq.org/show_bug.cgi?id=21292
Summary: system call "open" doesn't reject trailing slash in
filenames
Product: Wine
Version: 1.0.1
Platform: x86
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: msvcrt
AssignedTo: wine-bugs at winehq.org
ReportedBy: simon at josefsson.org
Here is another test case that triggers gnulib self-tests failures under Wine
but not under Windows XP. Under Wine it prints:
out 3
but under Windows XP it prints:
out -1
which is expected.
Thanks,
/Simon
jas at mocca:~$ cat foo.c
#include <fcntl.h>
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <stdio.h>
int
main (void)
{
int fd = open ("nonexist.ent/", O_CREAT | O_RDONLY, 0600);
printf ("out %d\n", fd);
return 0;
}
jas at mocca:~$ i586-mingw32msvc-gcc -o foo.exe foo.c
jas at mocca:~$ wine --version
wine-1.0.1
jas at mocca:~$ wine ./foo.exe
out 3
jas at mocca:~$
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list