]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Remove unused sync version of cli_getattrE()
authorVolker Lendecke <vl@samba.org>
Thu, 4 Jun 2020 06:45:37 +0000 (08:45 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 4 Jun 2020 17:11:39 +0000 (17:11 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/clifile.c
source3/libsmb/proto.h

index 6c75759bbca21a33ec045057c3426c02eaccf666..42b964dbabea9be6e5df88d1dd34ce030e72d114 100644 (file)
@@ -4151,67 +4151,6 @@ NTSTATUS cli_getattrE_recv(struct tevent_req *req,
        return NT_STATUS_OK;
 }
 
-NTSTATUS cli_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)
-{
-       TALLOC_CTX *frame = NULL;
-       struct tevent_context *ev = NULL;
-       struct tevent_req *req = NULL;
-       NTSTATUS status = NT_STATUS_OK;
-
-       if (smbXcli_conn_protocol(cli->conn) >= PROTOCOL_SMB2_02) {
-               return cli_smb2_getattrE(cli,
-                                       fnum,
-                                       pattr,
-                                       size,
-                                       change_time,
-                                       access_time,
-                                       write_time);
-       }
-
-       frame = talloc_stackframe();
-
-       if (smbXcli_conn_has_async_calls(cli->conn)) {
-               /*
-                * Can't use sync call while an async call is in flight
-                */
-               status = NT_STATUS_INVALID_PARAMETER;
-               goto fail;
-       }
-
-       ev = samba_tevent_context_init(frame);
-       if (ev == NULL) {
-               status = NT_STATUS_NO_MEMORY;
-               goto fail;
-       }
-
-       req = cli_getattrE_send(frame, ev, cli, fnum);
-       if (req == NULL) {
-               status = NT_STATUS_NO_MEMORY;
-               goto fail;
-       }
-
-       if (!tevent_req_poll_ntstatus(req, ev, &status)) {
-               goto fail;
-       }
-
-       status = cli_getattrE_recv(req,
-                                       pattr,
-                                       size,
-                                       change_time,
-                                       access_time,
-                                       write_time);
-
- fail:
-       TALLOC_FREE(frame);
-       return status;
-}
-
 /****************************************************************************
  Do a SMBgetatr call
 ****************************************************************************/
index 58120b06e4241f63602c8e530901caa253c1a7f3..d214cdabca42de96f2ba6d59fd7b96723ffd4b9c 100644 (file)
@@ -523,13 +523,6 @@ NTSTATUS cli_getattrE_recv(struct tevent_req *req,
                         time_t *change_time,
                         time_t *access_time,
                         time_t *write_time);
-NTSTATUS cli_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 tevent_req *cli_setattrE_send(TALLOC_CTX *mem_ctx,
                                struct tevent_context *ev,
                                struct cli_state *cli,