diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-13 12:42:21 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-13 12:42:21 -0700 |
commit | d2317359b2bb02ed4c8f773867c470c5a92a181e (patch) | |
tree | 664f0e5dab6fba70c32ddbad3ee3c6859323202f /tests | |
parent | 673ea2ec24decdcfd5321f13dd68603b158dc5c5 (diff) | |
parent | c711f1e6e6d294200b04ad580827358b2ffa2374 (diff) |
Merge pull request #1374 from inolen/posix_fallocate_fix
check write permission in posix_fallocate
Diffstat (limited to 'tests')
-rw-r--r-- | tests/fcntl-misc/src.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/fcntl-misc/src.c b/tests/fcntl-misc/src.c index 73734969..7cdbbcd6 100644 --- a/tests/fcntl-misc/src.c +++ b/tests/fcntl-misc/src.c @@ -6,7 +6,7 @@ int main() { struct stat s; - int f = open("/test", O_RDONLY, 0777); + int f = open("/test", O_RDWR, 0777); printf("posix_fadvise: %d\n", posix_fadvise(f, 3, 2, POSIX_FADV_DONTNEED)); printf("errno: %d\n", errno); |