torture3: Fix an error message
authorVolker Lendecke <vl@samba.org>
Thu, 14 Mar 2019 10:40:23 +0000 (11:40 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 18 Mar 2019 19:21:23 +0000 (19:21 +0000)
We tried to open "dname", not "fname"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/torture.c

index ac10de2..8b1bf32 100644 (file)
@@ -6416,7 +6416,9 @@ static bool run_simple_posix_open_test(int dummy)
        /* What happens when we try and POSIX open a directory for write ? */
        status = cli_posix_open(cli1, dname, O_RDWR, 0, &fnum1);
        if (NT_STATUS_IS_OK(status)) {
-               printf("POSIX open of directory %s succeeded, should have failed.\n", fname);
+               printf("POSIX open of directory %s succeeded, "
+                      "should have failed.\n",
+                      dname);
                goto out;
        } else {
                if (!check_both_error(__LINE__, status, ERRDOS, EISDIR,