From f16b0ec3bdf089d94ca7dac4f8da95b9154abbff Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Mon, 12 Mar 2007 10:05:27 +0100 Subject: [PATCH] Let the fake readlink(2) and symlink(2) functions report ENOSYS. Now that some symbolic link support is coming soon, let those functions report a more correct error than EINVAL or EFAULT. --- compat/mingw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compat/mingw.c b/compat/mingw.c index 9222626d28..595c9956e1 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -7,13 +7,13 @@ unsigned int _CRT_fmode = _O_BINARY; int readlink(const char *path, char *buf, size_t bufsiz) { - errno = EINVAL; + errno = ENOSYS; return -1; } int symlink(const char *oldpath, const char *newpath) { - errno = EFAULT; + errno = ENOSYS; return -1; }