]> andersk Git - moira.git/commitdiff
When we encounter a duplicate user and fail to add them, report their
authorzacheiss <zacheiss>
Tue, 5 Jun 2001 19:55:20 +0000 (19:55 +0000)
committerzacheiss <zacheiss>
Tue, 5 Jun 2001 19:55:20 +0000 (19:55 +0000)
first and last name, not login name and unix uid (which in this case
will always be "create unique login name" and "create unique UID").

clients/addusr/addusr.c

index d9e0b4a30da8c09a0e4289b1c3be367d86bc091f..820adfc261eff7c43dea98c7ce58d16cb3002505 100644 (file)
@@ -268,7 +268,7 @@ int main(int argc, char **argv)
                {
                  com_err(whoami, status,
                          "checking to see if user %s %s already exists",
-                         qargv[0], qargv[1]);
+                         qargv[U_FIRST], qargv[U_LAST]);
                  com_err(whoami, 0, "NOT ADDING USER");
                  errors++;
                  continue;
@@ -276,7 +276,7 @@ int main(int argc, char **argv)
              if (duplicate > 0)
                {
                  com_err(whoami, MR_EXISTS, "user %s %s already exists",
-                         qargv[0], qargv[1]);
+                         qargv[U_FIRST], qargv[U_LAST]);
                  com_err(whoami, 0, "NOT ADDING USER");
                  errors++;
                  continue;
This page took 0.210201 seconds and 5 git commands to generate.