diff options
author | Tim Potter <tpot@samba.org> | 2002-02-15 02:46:13 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-02-15 02:46:13 +0000 |
commit | a56298d56ae67a764e9b9a43c1c568b7125e1c18 (patch) | |
tree | 066c1a0091bb854d19878e45f217e33d9a4c08d0 /source | |
parent | 50fa21c995d33601920b3b56a3e03b09262e7fd9 (diff) | |
download | samba-a56298d56ae67a764e9b9a43c1c568b7125e1c18.tar.gz samba-a56298d56ae67a764e9b9a43c1c568b7125e1c18.tar.xz samba-a56298d56ae67a764e9b9a43c1c568b7125e1c18.zip |
Merge of smbclient print crash bug fix from app head.
Diffstat (limited to 'source')
-rw-r--r-- | source/smbd/open.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/smbd/open.c b/source/smbd/open.c index 915063a5df1..aab7b5079e6 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -629,8 +629,10 @@ files_struct *open_file_shared(connection_struct *conn,char *fname, SMB_STRUCT_S if (conn->printer) { /* printers are handled completely differently. Most of the passed parameters are ignored */ - *Access = DOS_OPEN_WRONLY; - *action = FILE_WAS_CREATED; + if (Access) + *Access = DOS_OPEN_WRONLY; + if (action) + *action = FILE_WAS_CREATED; return print_fsp_open(conn, fname); } |