diff options
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 2 | ||||
-rw-r--r-- | source3/client/clitar.c | 2 | ||||
-rw-r--r-- | source3/client/smbspool.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c index 3dc8371bb0..050313bd86 100644 --- a/source3/client/client.c +++ b/source3/client/client.c @@ -981,7 +981,7 @@ static void do_put(char *rname,char *lname) struct timeval tp_start; GetTimeOfDay(&tp_start); - fnum = cli_open(cli, rname, O_WRONLY|O_CREAT|O_TRUNC, DENY_NONE); + fnum = cli_open(cli, rname, O_RDWR|O_CREAT|O_TRUNC, DENY_NONE); if (fnum == -1) { DEBUG(0,("%s opening remote file %s\n",cli_errstr(cli),rname)); diff --git a/source3/client/clitar.c b/source3/client/clitar.c index 76b6ff94d5..f50c4b4288 100644 --- a/source3/client/clitar.c +++ b/source3/client/clitar.c @@ -994,7 +994,7 @@ static int get_file(file_info2 finfo) DEBUG(5, ("get_file: file: %s, size %i\n", finfo.name, (int)finfo.size)); if (ensurepath(finfo.name) && - (fnum=cli_open(cli, finfo.name, O_WRONLY|O_CREAT|O_TRUNC, DENY_NONE)) == -1) { + (fnum=cli_open(cli, finfo.name, O_RDWR|O_CREAT|O_TRUNC, DENY_NONE)) == -1) { DEBUG(0, ("abandoning restore\n")); return(False); } diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index dd1d17d71a..8150787fcb 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -328,7 +328,7 @@ smb_print(struct cli_state *cli, /* I - SMB connection */ * Open the printer device... */ - if ((fnum = cli_open(cli, title, O_WRONLY | O_CREAT | O_TRUNC, DENY_NONE)) == -1) + if ((fnum = cli_open(cli, title, O_RDWR | O_CREAT | O_TRUNC, DENY_NONE)) == -1) { fprintf(stderr, "ERROR: %s opening remote file %s\n", cli_errstr(cli), title); |