summaryrefslogtreecommitdiffstats
path: root/source/client/smbspool.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/smbspool.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/smbspool.c')
-rw-r--r--source/client/smbspool.c2
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);