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()