cette bestiole m'a laiss creer un compte alors que le /var/mail existait
encore darcs-hash:20051202142611-4ec08-488ac8fa9a2e9fe9f17b2dda1e7b3c60210d26de.gz
This commit is contained in:
parent
e7ee4a3e5e
commit
4246ae74dd
1 changed files with 3 additions and 0 deletions
|
@ -1711,6 +1711,9 @@ class adherent(base_proprietaire):
|
|||
home = '/home/' + login
|
||||
if os.path.exists(home):
|
||||
raise ValueError(u'Création du compte impossible : home existant',1)
|
||||
|
||||
if os.path.exists("/var/mail/"+login):
|
||||
raise ValueError(u'Création du compte impossible : /var/mail/%s existant'%login,1)
|
||||
|
||||
# Lock du mail
|
||||
self.lock('mail',login)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue