libgpo: gpo_copy_file() shouldn't explicitly call smb1
authorDavid Mulder <dmulder@suse.com>
Wed, 11 Apr 2018 18:40:18 +0000 (12:40 -0600)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 12 Apr 2018 06:13:34 +0000 (08:13 +0200)
commit8e25e2f3408bda87e2acffa3fc464c32173bb814
tree8c34bce8e944df3cd46d594d397fcd6db3730db0
parent6747553d1b40dc82b6aae6173dff7d2f89deb90d
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>
libgpo/gpo_filesync.c