--- a/daemon/gvfsbackendsmbbrowse.c +++ a/daemon/gvfsbackendsmbbrowse.c @@ -802,7 +802,6 @@ return; } - lp_set_cmdline ("client max protocol", "NT1"); smbc_setOptionUserData (smb_context, backend); debug = g_getenv ("GVFS_SMB_DEBUG"); --- a/daemon/gvfsbackendsmbprivate.h +++ a/daemon/gvfsbackendsmbprivate.h @@ -25,7 +25,4 @@ char *create_smb_uri (const char *server, int port, const char *share, const char *path); -/* from samba's proto.h */ -int lp_set_cmdline(const char *pszParmName, const char *pszParmValue); - #endif /* __G_VFS_BACKEND_SMB_PRIVATE_H__ */ --- gvfs.spec.orig 2018-02-26 04:17:45.839495958 +0100 +++ gvfs.spec.orig 2018-02-26 04:02:01.875818401 +0100 @@ -22,7 +22,7 @@ Name: gvfs Version: 1.34.2 -Release: 1%{?dist} +Release: 2%{?dist}.local Summary: Backends for the gio framework in GLib License: GPLv3 and LGPLv2+ and BSD and MPLv2.0 @@ -31,6 +31,7 @@ # http://bugzilla.gnome.org/show_bug.cgi?id=567235 Patch0: gvfs-archive-integration.patch +Patch1: force-smb1.patch BuildRequires: pkgconfig BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} @@ -108,6 +109,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}-client%{?_isa} = %{version}-%{release} BuildRequires: libsmbclient-devel >= %{libsmbclient_version} +BuildRequires: samba-devel >= %{libsmbclient_version} BuildRequires: pkgconfig(talloc) >= %{talloc_version} %description smb @@ -214,6 +216,7 @@ %prep %setup -q %patch0 -p1 -b .archive-integration +%patch1 -p1 -b .smb1 # Needed for gvfs-0.2.1-archive-integration.patch autoreconf -fi @@ -223,7 +226,8 @@ --disable-gdu \ --enable-udisks2 \ --enable-keyring \ - --enable-installed-tests + --enable-installed-tests \ + SAMBA_LIBS="-L/usr/lib64 -lsmbclient -lsmbconf" make %{?_smp_mflags} V=1 %install