summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-07-05 19:51:09 +0200
committerVolker Lendecke <vlendec@samba.org>2011-07-06 08:35:27 +0200
commitc33a5a659c82eda365e4dacfe665ce401e92f476 (patch)
tree8265a36e81e0d514464d6d088345443c87c417c4 /source3/client
parentc1fdec7efce159bcc9aa146d2ce3485dccc6476a (diff)
downloadsamba-c33a5a659c82eda365e4dacfe665ce401e92f476.tar.gz
s3: Fix error logic in posix_open
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index aa890bab4c4..978f2e5dd69 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);