You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
846 B

  1. --- a/src/usermod.c
  2. +++ b/src/usermod.c
  3. @@ -1361,6 +1361,7 @@ static void process_flags (int argc, cha
  4. exit (E_UID_IN_USE);
  5. }
  6. +#ifdef ENABLE_SUBIDS
  7. if ( (vflg || Vflg)
  8. && !is_sub_uid) {
  9. fprintf (stderr,
  10. @@ -1376,6 +1377,7 @@ static void process_flags (int argc, cha
  11. Prog, sub_gid_dbname (), "-w", "-W");
  12. exit (E_USAGE);
  13. }
  14. +#endif
  15. }
  16. /*
  17. --- a/src/Makefile.am
  18. +++ b/src/Makefile.am
  19. @@ -52,7 +52,10 @@ usbin_PROGRAMS = \
  20. noinst_PROGRAMS = id sulogin
  21. suidbins = su
  22. -suidubins = chage chfn chsh expiry gpasswd newgrp passwd newuidmap newgidmap
  23. +suidubins = chage chfn chsh expiry gpasswd newgrp passwd
  24. +if ENABLE_SUBIDS
  25. + suidubins += newuidmap newgidmap
  26. +endif
  27. if ACCT_TOOLS_SETUID
  28. suidubins += chage chgpasswd chpasswd groupadd groupdel groupmod newusers useradd userdel usermod
  29. endif