mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
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
This commit is contained in:
parent
be300b0588
commit
36ec31336f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user