From ccb76adeaf8601f5f7c577c712428e3fe4b992d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D0=B8=D1=80=D0=B5=D1=86=D0=BA=D0=B8=D0=B9=20=D0=9C?= =?UTF-8?q?=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Wed, 14 Nov 2018 17:57:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D0=BA=D0=BB=D1=8E=D1=87=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=83=D0=BA=D0=B0=D0=B7=D0=B0=D0=BD=D0=B8=D0=B5=20?= =?UTF-8?q?=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20=D0=B8=D1=81=D0=BF=D0=BE?= =?UTF-8?q?=D0=BB=D1=8C=D0=B7=D1=83=D0=B5=D0=BC=D0=BE=D0=B9=20cifs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pym/client/client.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pym/client/client.py b/pym/client/client.py index 1e5b40c..4601f39 100644 --- a/pym/client/client.py +++ b/pym/client/client.py @@ -294,20 +294,19 @@ class Client(commandServer, encrypt, Desktop): cache_method = self.clVars.Get('cl_cifs_cache') domain = self.clVars.Get('cl_remote_domain') or \ self.get_server_domainname(host) - cifs_mount_vers = self.clVars.Get('cl_cifs_mount_vers') if not uid is None: # mount by uid p = process(mountCmd, "-t", "cifs", "-o", "cache=%s,domain=%s,user=%s,uid=%d,gid=%d,noperm%s" % ( - cache_method, domain, cifs_mount_vers, + cache_method, domain, userName, uid, gid, nomapposix), "//%s/%s" % (host, res), rpath, envdict={"PASSWD": userPwd}, stderr=STDOUT) return p.success() else: p = process(mountCmd, "-t", "cifs", "-o", - "cache=%s,domain=%s,vers=%s,user=%s%s" % (cache_method, - domain, cifs_mount_vers, userName, nomapposix), + "cache=%s,domain=%s,user=%s%s" % (cache_method, + domain, userName, nomapposix), "//%s/%s" % (host, res), rpath, envdict={"PASSWD": userPwd}, stderr=STDOUT) return p.success()