summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/newlist4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/newlist b/bin/newlist
index 4ee9ac16c..c1ef9cc27 100755
--- a/bin/newlist
+++ b/bin/newlist
@@ -99,6 +99,10 @@ def main(argv):
list_pw = argv[3]
else:
list_pw = getpass.getpass("Initial %s password: " % listname)
+ # List passwords cannot be empty
+ list_pw = string.strip(list_pw)
+ if not list_pw:
+ usage(1, 'The list password cannot be empty')
mlist = MailList.MailList()
try: