From ff3ae04e8b302cece98e0433425027731afd96a1 Mon Sep 17 00:00:00 2001 From: asamoukin Date: Tue, 20 Jan 2009 06:38:07 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D1=80=D0=B8=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B8=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8F=20=D1=81=20=D0=B4=D0=BE=D0=BC=D0=B0=D1=88?= =?UTF-8?q?=D0=BD=D0=B5=D0=B9=20=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE?= =?UTF-8?q?=D1=80=D0=B8=D0=B5=D0=B9=20"/dev/null"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://svn.calculate.ru/calculate2/calculate-server/trunk@750 c91db197-33c1-4113-bf15-f8a5c547ca64 --- pym/cl_ldap.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pym/cl_ldap.py b/pym/cl_ldap.py index f6569dc..85fcab5 100644 --- a/pym/cl_ldap.py +++ b/pym/cl_ldap.py @@ -2004,7 +2004,8 @@ service")) if resLdap[0][0][1].has_key('homeDirectory'): #Домашняя директория пользователя homeDir = resLdap[0][0][1]['homeDirectory'][0] - if backup and os.path.exists(homeDir) and os.listdir(homeDir): + if backup and os.path.exists(homeDir) and\ + os.path.isdir(homeDir) and os.listdir(homeDir): # Делаем сохранение домашней директории if not self.backupDelUser(userName, 'unix/home', homeDir, self):