1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-08 16:23:49 +03:00

libsmb: Remove cli_getattrE() fallback from cli_qfileinfo_basic() users

cli_qfileinfo_basic() now takes care of this centrally

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke
2020-06-04 08:43:49 +02:00
committed by Jeremy Allison
parent 1a14d8cf7e
commit 29866ad7b2
3 changed files with 11 additions and 32 deletions

View File

@@ -715,14 +715,9 @@ SMBC_lseek_ctx(SMBCCTX *context,
file->targetcli, file->cli_fd, NULL,
&size, NULL, NULL, NULL, NULL,
NULL))) {
off_t b_size = size;
if (!NT_STATUS_IS_OK(cli_getattrE(file->targetcli, file->cli_fd,
NULL, &b_size, NULL, NULL, NULL))) {
errno = EINVAL;
TALLOC_FREE(frame);
return -1;
} else
size = b_size;
errno = EINVAL;
TALLOC_FREE(frame);
return -1;
}
file->offset = size + offset;
break;