From 42fb4f40501f3b827ff9ec76c9b158e96dd2a664 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Sat, 17 Apr 2010 11:39:01 +0000 Subject: [PATCH] * 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 --- src/system/libroot/posix/sys/stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/libroot/posix/sys/stat.c b/src/system/libroot/posix/sys/stat.c index d0387322c7..af8530d1fa 100644 --- a/src/system/libroot/posix/sys/stat.c +++ b/src/system/libroot/posix/sys/stat.c @@ -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);