From fb7db28c254181ebfc13a40aee14fa09bcf02649 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sun, 13 Mar 2011 19:35:13 +0000 Subject: [PATCH] POSIX accepts only ELOOP if O_NOFOLLOW is specified and target is a symlink. --- tools/regression/pjdfstest/tests/open/16.t | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/regression/pjdfstest/tests/open/16.t b/tools/regression/pjdfstest/tests/open/16.t index ebf179ebb50..a15cd9b3c07 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} -- 2.45.0