From: Volker Lendecke Date: Thu, 4 Jun 2020 13:23:45 +0000 (+0200) Subject: libsmb: Remove unused cli_smb2_getattrE() X-Git-Tag: ldb-2.2.0~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cedbe17c99b0fba7f378d6903cb3aed0177ce8e7;p=thirdparty%2Fsamba.git libsmb: Remove unused cli_smb2_getattrE() Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/libsmb/cli_smb2_fnum.c b/source3/libsmb/cli_smb2_fnum.c index e974456dc8f..8487f464a69 100644 --- a/source3/libsmb/cli_smb2_fnum.c +++ b/source3/libsmb/cli_smb2_fnum.c @@ -2092,51 +2092,6 @@ NTSTATUS cli_smb2_qfileinfo_basic(struct cli_state *cli, return status; } -/*************************************************************** - Wrapper that allows SMB2 to query an fnum. - Implement on top of cli_smb2_qfileinfo_basic(). - Synchronous only. -***************************************************************/ - -NTSTATUS cli_smb2_getattrE(struct cli_state *cli, - uint16_t fnum, - uint32_t *pattr, - off_t *size, - time_t *change_time, - time_t *access_time, - time_t *write_time) -{ - struct timespec access_time_ts; - struct timespec write_time_ts; - struct timespec change_time_ts; - NTSTATUS status = cli_smb2_qfileinfo_basic(cli, - fnum, - pattr, - size, - NULL, - &access_time_ts, - &write_time_ts, - &change_time_ts, - NULL); - - cli->raw_status = status; - - if (!NT_STATUS_IS_OK(status)) { - return status; - } - - if (change_time) { - *change_time = change_time_ts.tv_sec; - } - if (access_time) { - *access_time = access_time_ts.tv_sec; - } - if (write_time) { - *write_time = write_time_ts.tv_sec; - } - return NT_STATUS_OK; -} - /*************************************************************** Wrapper that allows SMB2 to get pathname attributes. Synchronous only. diff --git a/source3/libsmb/cli_smb2_fnum.h b/source3/libsmb/cli_smb2_fnum.h index 95687f74e7f..6613ddc0078 100644 --- a/source3/libsmb/cli_smb2_fnum.h +++ b/source3/libsmb/cli_smb2_fnum.h @@ -164,13 +164,6 @@ NTSTATUS cli_smb2_qfileinfo_basic(struct cli_state *cli, struct timespec *write_time, struct timespec *change_time, SMB_INO_T *ino); -NTSTATUS cli_smb2_getattrE(struct cli_state *cli, - uint16_t fnum, - uint32_t *pattr, - off_t *size, - time_t *change_time, - time_t *access_time, - time_t *write_time); NTSTATUS cli_smb2_getatr(struct cli_state *cli, const char *name, uint32_t *pattr,