1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

torture3: Fix an error message

We tried to open "dname", not "fname"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2019-03-14 11:40:23 +01:00 committed by Jeremy Allison
parent 068f42bed7
commit 769b51dae8

View 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,