]> andersk Git - moira.git/commitdiff
Call mr_access() in AddList so we can bomb out before asking the user
authorzacheiss <zacheiss>
Tue, 6 Aug 2002 22:08:31 +0000 (22:08 +0000)
committerzacheiss <zacheiss>
Tue, 6 Aug 2002 22:08:31 +0000 (22:08 +0000)
for all of the list info.

clients/moira/lists.c

index a398ef02b8af7771aa63945b2637593e4ecd7c4e..9fb95f1eadb6cb6380cc58ea56842ea59a4e9c2f 100644 (file)
@@ -442,6 +442,12 @@ int AddList(int argc, char **argv)
       return SUB_ERROR;
     }
 
+  if (status = mr_access("add_list", L_MODTIME, SetDefaults(info, argv[1]))) 
+    {
+      com_err(program_name, status, " in AddList.");
+      return SUB_ERROR;
+    }
+
   /*
    * If the listname is less than 8 characters, make sure it doesn't
    * collide with a username.
This page took 0.044137 seconds and 5 git commands to generate.