Fix error codes to match Windows NFS Server behavior master-nfs-testing
authorGünther Deschner <gd@samba.org>
Mon, 20 Nov 2023 22:00:58 +0000 (23:00 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 21 Nov 2023 12:40:12 +0000 (13:40 +0100)
source4/torture/nfs/nfs.c

index 4e1678335d0a543a0370f8e78363280f3d35b7cf..a6b8bcbccdfa7671a09219a03fa26d17b378e74f 100644 (file)
@@ -575,12 +575,12 @@ static bool test_nfs_mix_smb_with_io_and_unlink(struct torture_context *tctx,
 
        torture_assert_nfs_equal(tctx,
                nfs_unlink(t->nfs, fname),
-               -NFSERR_NOENT,
+               -NFSERR_ACCES,
                "Failed to unlink file");
 
        torture_assert_nfs_equal(tctx,
                nfs_open(t->nfs, fname, O_RDONLY, &nfsfh),
-               -NFSERR_NOENT,
+               -NFSERR_IO,
                "Failed to open file");
 
        ZERO_STRUCT(rd);