]> andersk Git - moira.git/commitdiff
Don't try to do a get_user_account_by_login with a username longer than 8
authortytso <tytso>
Tue, 9 Aug 1994 19:13:06 +0000 (19:13 +0000)
committertytso <tytso>
Tue, 9 Aug 1994 19:13:06 +0000 (19:13 +0000)
characters.  This triggers a moira bug.

clients/moira/lists.c

index 7bcc4f54664b0ea6eec8ebebb2a802caa5b6ac81..173c3909b1ca31416f35e4857fe716d7aa680177 100644 (file)
@@ -374,7 +374,12 @@ char **argv;
        return(SUB_ERROR);
     }
 
-    if (do_mr_query("get_user_account_by_login", 1, argv + 1,
+    /*
+     * If the listname is less than 8 characters, make sure it doesn't
+     * collide with a username.
+     */
+    if ((strlen(argv[1]) <= 8) &&
+       do_mr_query("get_user_account_by_login", 1, argv + 1,
                    StoreInfo, (char *) &elem) == 0) {
            Put_message("A user by that name already exists in the database.");
            Loop(QueueTop(elem), FreeInfo);
This page took 0.082253 seconds and 5 git commands to generate.