summaryrefslogtreecommitdiff
path: root/libgpo
diff options
context:
space:
mode:
authorDavid Mulder <dmulder@suse.com>2018-04-11 12:40:18 -0600
committerDouglas Bagnall <dbagnall@samba.org>2018-04-12 08:13:34 +0200
commit8e25e2f3408bda87e2acffa3fc464c32173bb814 (patch)
tree8c34bce8e944df3cd46d594d397fcd6db3730db0 /libgpo
parent6747553d1b40dc82b6aae6173dff7d2f89deb90d (diff)
downloadsamba-8e25e2f3408bda87e2acffa3fc464c32173bb814.tar.gz
libgpo: gpo_copy_file() shouldn't explicitly call smb1
Don't call cli_openx directly to open a file this calls smb1 code explicitly, which fails if we did a multi-protocol negotiate and negotiated smb2+. Use the higher level cli_open() instead. Signed-off-by: David Mulder <dmulder@suse.com> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/gpo_filesync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgpo/gpo_filesync.c b/libgpo/gpo_filesync.c
index 6e3efdaf6c1..bf0bb5381fc 100644
--- a/libgpo/gpo_filesync.c
+++ b/libgpo/gpo_filesync.c
@@ -50,7 +50,7 @@ NTSTATUS gpo_copy_file(TALLOC_CTX *mem_ctx,
int read_size = io_bufsize;
off_t nread = 0;
- result = cli_openx(cli, nt_path, O_RDONLY, DENY_NONE, &fnum);
+ result = cli_open(cli, nt_path, O_RDONLY, DENY_NONE, &fnum);
if (!NT_STATUS_IS_OK(result)) {
goto out;
}