diff options
Diffstat (limited to 'source3/client/smbspool.c')
-rw-r--r-- | source3/client/smbspool.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |