* fstatat: the meaning of AT_SYMLINK_NOFOLLOW was reversed. Fixed #5731.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36331 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8bb679076d
commit
42fb4f4050
@ -54,7 +54,7 @@ _lstat_current(const char* path, struct stat* stat)
|
||||
int
|
||||
fstatat(int fd, const char *path, struct stat *st, int flag)
|
||||
{
|
||||
int status = _kern_read_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) != 0,
|
||||
int status = _kern_read_stat(fd, path, (flag & AT_SYMLINK_NOFOLLOW) == 0,
|
||||
st, sizeof(struct stat));
|
||||
|
||||
RETURN_AND_SET_ERRNO(status);
|
||||
|
Loading…
Reference in New Issue
Block a user