1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

libsmb: Remove some lines that were never used

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Volker Lendecke 2020-04-19 14:40:56 +02:00 committed by Andreas Schneider
parent c52a05d76f
commit 52d4825a4e

View File

@ -3092,40 +3092,6 @@ NTSTATUS cli_open(struct cli_state *cli, const char *fname, int flags,
dos_deny = 0xFF;
}
#if 0
/* Hmmm. This is what I think the above code
should look like if it's using the constants
we #define. JRA. */
if (flags & O_CREAT) {
openfn |= OPENX_FILE_CREATE_IF_NOT_EXIST;
}
if (!(flags & O_EXCL)) {
if (flags & O_TRUNC)
openfn |= OPENX_FILE_EXISTS_TRUNCATE;
else
openfn |= OPENX_FILE_EXISTS_OPEN;
}
dos_deny = SET_DENY_MODE(share_mode_in);
if ((flags & O_ACCMODE) == O_RDWR) {
dos_deny |= DOS_OPEN_RDWR;
} else if ((flags & O_ACCMODE) == O_WRONLY) {
dos_deny |= DOS_OPEN_WRONLY;
}
#if defined(O_SYNC)
if ((flags & O_SYNC) == O_SYNC) {
dos_deny |= FILE_SYNC_OPENMODE;
}
#endif /* O_SYNC */
if (share_mode_in == DENY_FCB) {
dos_deny = 0xFF;
}
#endif
if (!map_open_params_to_ntcreate(fname, dos_deny,
openfn, &access_mask,
&share_mode, &create_disposition,