diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-08 10:15:53 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-08 10:15:53 +0000 |
commit | e21aa4cb088f348139309d29c85c48c8b777cff5 (patch) | |
tree | dd85b13d6848d5418a84d7d627b636e44aa66791 /source/client/smbspool.c | |
parent | 2071105b439e87cb1c7c3a8c1b2046441eb46270 (diff) | |
download | samba-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/smbspool.c')
-rw-r--r-- | source/client/smbspool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/client/smbspool.c b/source/client/smbspool.c index dd1d17d71a7..8150787fcb0 100644 --- a/source/client/smbspool.c +++ b/source/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); |