summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-08 10:15:53 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-08 10:15:53 +0000
commite21aa4cb088f348139309d29c85c48c8b777cff5 (patch)
treedd85b13d6848d5418a84d7d627b636e44aa66791 /source/client/client.c
parent2071105b439e87cb1c7c3a8c1b2046441eb46270 (diff)
downloadsamba-e21aa4cb088f348139309d29c85c48c8b777cff5.tar.gz
samba-e21aa4cb088f348139309d29c85c48c8b777cff5.tar.xz
samba-e21aa4cb088f348139309d29c85c48c8b777cff5.zip
cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.
After fixing that I needed to use O_RDWR instead of O_WRONLY in several places to avoid the silly bug in MS servers that doesn't allow getattrE on a file opened with O_WRONLY
Diffstat (limited to 'source/client/client.c')
-rw-r--r--source/client/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 3dc8371bb0c..050313bd868 100644
--- a/source/client/client.c
+++ b/source/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));