]> git.pld-linux.org Git - packages/pwdutils.git/blob - pwdutils-f-option.patch
make is optional in pam, make it optional here as well
[packages/pwdutils.git] / pwdutils-f-option.patch
1 --- pwdutils-2.6.90/src/groupadd.c.orig 2004-08-16 08:05:50.000000000 +0000
2 +++ pwdutils-2.6.90/src/groupadd.c      2004-08-17 19:55:48.533394920 +0000
3 @@ -486,7 +486,10 @@
4        fprintf (stderr, _("%s: Group `%s' already exists.\n"),
5                program, utf8_to_locale (new_group));
6        sec_log (program, MSG_GROUP_ALREADY_EXISTS, new_group, getuid ());
7 -      return E_NAME_IN_USE;
8 +      if (force_add)
9 +             return E_SUCCESS;
10 +      else
11 +             return E_NAME_IN_USE;
12      }
13    else
14      {
This page took 0.03155 seconds and 3 git commands to generate.