diff options
author | pjd <pjd@FreeBSD.org> | 2011-03-13 19:35:13 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-03-13 19:35:13 +0000 |
commit | eed23027f077c062772ce762806a18153a55cb4b (patch) | |
tree | 790ea1de32f8f086d5a10968850a30aa01d9d958 /tools/regression/pjdfstest/tests | |
parent | 45445ae0ff19bd64204a33ce338f59d9575dc914 (diff) | |
download | FreeBSD-src-eed23027f077c062772ce762806a18153a55cb4b.zip FreeBSD-src-eed23027f077c062772ce762806a18153a55cb4b.tar.gz |
POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink.
Diffstat (limited to 'tools/regression/pjdfstest/tests')
-rw-r--r-- | tools/regression/pjdfstest/tests/open/16.t | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/regression/pjdfstest/tests/open/16.t b/tools/regression/pjdfstest/tests/open/16.t index ebf179e..a15cd9b 100644 --- a/tools/regression/pjdfstest/tests/open/16.t +++ b/tools/regression/pjdfstest/tests/open/16.t @@ -1,7 +1,7 @@ #!/bin/sh # $FreeBSD$ -desc="open returns EMLINK/ELOOP when O_NOFOLLOW was specified and the target is a symbolic link" +desc="open returns ELOOP when O_NOFOLLOW was specified and the target is a symbolic link" dir=`dirname $0` . ${dir}/../misc.sh @@ -12,8 +12,8 @@ n0=`namegen` n1=`namegen` expect 0 symlink ${n0} ${n1} -expect "EMLINK|ELOOP" open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644 -expect "EMLINK|ELOOP" open ${n1} O_RDONLY,O_NOFOLLOW -expect "EMLINK|ELOOP" open ${n1} O_WRONLY,O_NOFOLLOW -expect "EMLINK|ELOOP" open ${n1} O_RDWR,O_NOFOLLOW +expect ELOOP open ${n1} O_RDONLY,O_CREAT,O_NOFOLLOW 0644 +expect ELOOP open ${n1} O_RDONLY,O_NOFOLLOW +expect ELOOP open ${n1} O_WRONLY,O_NOFOLLOW +expect ELOOP open ${n1} O_RDWR,O_NOFOLLOW expect 0 unlink ${n1} |