diff options
author | Volker Lendecke <vl@samba.org> | 2012-09-04 10:36:47 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2012-09-26 18:08:03 +0200 |
commit | 36ec31336f4547b311148f27075cdb4fc8c37609 (patch) | |
tree | b328ea062beb37b7e58670c949ade45f9cd9b863 | |
parent | be300b0588729c3c87f765e2737ebaccc0af02ff (diff) | |
download | samba-36ec31336f4547b311148f27075cdb4fc8c37609.tar.gz samba-36ec31336f4547b311148f27075cdb4fc8c37609.tar.bz2 samba-36ec31336f4547b311148f27075cdb4fc8c37609.zip |
s3: Slightly simplify open_file()
The "else" is not necessary. In the if-branch we just returned.
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Wed Sep 26 18:08:03 CEST 2012 on sn-devel-104
-rw-r--r-- | source3/smbd/open.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 1f9a372dfb..10c855c225 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -678,7 +678,8 @@ static NTSTATUS open_file(files_struct *fsp, DEBUG(3,("Permission denied opening %s\n", smb_fname_str_dbg(smb_fname))); return NT_STATUS_ACCESS_DENIED; - } else if(flags & O_CREAT) { + } + if (flags & O_CREAT) { /* We don't want to write - but we must make sure that O_CREAT doesn't create the file if we have write access into the directory. |