# HG changeset patch # User Maxim Dounin # Date 1330517370 -3600 # Node ID 0a9e5d753fb84ac8d433256faa8e0cb29787c305 # Parent 9963da7397cc9026d70b333fbaf74e85ef61eb19 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 --- a/http_disable_symlinks.t +++ b/http_disable_symlinks.t @@ -267,7 +267,7 @@ like(http_get('/complex/3/empty.html'), 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');