From 094277d23028b514d10a6f5dc4f71d633a1801dc Mon Sep 17 00:00:00 2001 From: zacheiss Date: Tue, 6 Aug 2002 22:08:31 +0000 Subject: [PATCH] Call mr_access() in AddList so we can bomb out before asking the user for all of the list info. --- clients/moira/lists.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/clients/moira/lists.c b/clients/moira/lists.c index a398ef02..9fb95f1e 100644 --- a/clients/moira/lists.c +++ b/clients/moira/lists.c @@ -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. -- 2.45.2