mirror of
https://github.com/git/git.git
synced 2026-03-13 10:23:30 +01:00
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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user