mirror of
https://github.com/samba-team/samba.git
synced 2025-08-21 09:49:28 +03:00
CVE-2021-44141: s3: torture: Change expected error return for samba3.smbtorture_s3.plain.POSIX.smbtorture.
Trying to open a symlink as a terminal component should return NT_STATUS_OBJECT_NAME_NOT_FOUND, not NT_STATUS_OBJECT_PATH_NOT_FOUND. Mark as knownfail.d/simple_posix_open until we fix the server. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14911 Signed-off-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
committed by
Jule Anger
parent
f03c42ea77
commit
dbeef6bc73
1
selftest/knownfail.d/simple_posix_open
Normal file
1
selftest/knownfail.d/simple_posix_open
Normal file
@ -0,0 +1 @@
|
||||
^samba3.smbtorture_s3.plain.POSIX.smbtorture\(.*\)
|
@ -7984,9 +7984,9 @@ static bool run_simple_posix_open_test(int dummy)
|
||||
goto out;
|
||||
} else {
|
||||
if (!check_both_error(__LINE__, status, ERRDOS, ERRbadpath,
|
||||
NT_STATUS_OBJECT_PATH_NOT_FOUND)) {
|
||||
NT_STATUS_OBJECT_NAME_NOT_FOUND)) {
|
||||
printf("POSIX open of %s should have failed "
|
||||
"with NT_STATUS_OBJECT_PATH_NOT_FOUND, "
|
||||
"with NT_STATUS_OBJECT_NAME_NOT_FOUND, "
|
||||
"failed with %s instead.\n",
|
||||
sname, nt_errstr(status));
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user