diff options
-rw-r--r-- | source3/client/client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index aa890bab4c..978f2e5dd6 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -2572,9 +2572,9 @@ static int cmd_posix_open(void) if (!NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDWR, mode, &fnum))) { if (!NT_STATUS_IS_OK(cli_posix_open(targetcli, targetname, O_CREAT|O_RDONLY, mode, &fnum))) { - d_printf("posix_open file %s: for read/write fnum %d\n", targetname, fnum); - } else { d_printf("Failed to open file %s. %s\n", targetname, cli_errstr(cli)); + } else { + d_printf("posix_open file %s: for readonly fnum %d\n", targetname, fnum); } } else { d_printf("posix_open file %s: for read/write fnum %d\n", targetname, fnum); |