From 52d4825a4ed87639f0954e8505508d6fac7a07ae Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 19 Apr 2020 14:40:56 +0200 Subject: [PATCH] libsmb: Remove some lines that were never used Signed-off-by: Volker Lendecke Reviewed-by: Andreas Schneider --- source3/libsmb/clifile.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 28d85d1a9f8..cd7194585ae 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -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,