diff options
author | Tim Potter <tpot@samba.org> | 2002-02-15 02:46:54 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-02-15 02:46:54 +0000 |
commit | c9399a90e27f47ac85f8fdb07a1073b6ca47f81a (patch) | |
tree | 9b809fbd8c73aac70582f3f6099794b498f452d0 | |
parent | a75ce2d1e658b25fc158960436b0e4af89bfe739 (diff) | |
download | samba-c9399a90e27f47ac85f8fdb07a1073b6ca47f81a.tar.gz samba-c9399a90e27f47ac85f8fdb07a1073b6ca47f81a.tar.xz samba-c9399a90e27f47ac85f8fdb07a1073b6ca47f81a.zip |
More merge of smbclient print crash bug fix.
-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 9cefcc9b45e..4b659305473 100644 --- a/source/smbd/open.c +++ b/source/smbd/open.c @@ -637,8 +637,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); } |