Tests: accept 404 on file link open with trailing slash. It's unspecified whether ENOTDIR or ELOOP/EMLINKS will be returned if both O_DIRECTORY and O_NOFOLLOW are set, so we accept both return codes (and 403 and 404 http status codes accordingly).
diff --git a/http_disable_symlinks.t b/http_disable_symlinks.t index f404a7c..68f4550 100644 --- a/http_disable_symlinks.t +++ b/http_disable_symlinks.t
@@ -267,7 +267,7 @@ chmod(0700, "$d/link"); -like(http_get('/link/tail'), qr!403 !, 'file with trailing /, on'); +like(http_get('/link/tail'), qr!40[34] !, 'file with trailing /, on'); like(http_get('/link/tailowner'), qr!404 !, 'file with trailing /, owner'); like(http_get('/link/tailoff'), qr!404 !, 'file with trailing /, off');