]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2021-44141: s3: torture: Change expected error return for samba3.smbtorture_s3...
authorJeremy Allison <jra@samba.org>
Wed, 8 Dec 2021 01:56:35 +0000 (17:56 -0800)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 Jan 2022 14:26:10 +0000 (14:26 +0000)
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>
selftest/knownfail.d/simple_posix_open [new file with mode: 0644]
source3/torture/torture.c

diff --git a/selftest/knownfail.d/simple_posix_open b/selftest/knownfail.d/simple_posix_open
new file mode 100644 (file)
index 0000000..5fcbdbd
--- /dev/null
@@ -0,0 +1 @@
+^samba3.smbtorture_s3.plain.POSIX.smbtorture\(.*\)
index f356fe865558ade435e308997208a3facbbe6db0..c1ee78cdac4a6461407741cb4f0c8f15d03a44d5 100644 (file)
@@ -8028,9 +8028,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;