usermod-fix-compilation-failure-with-subids-disabled.patch 734 B

123456789101112131415161718192021222324252627282930313233
  1. Upstream-Status: Pending
  2. usermod: fix compilation failure with subids disabled
  3. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
  4. ---
  5. src/usermod.c | 3 ++-
  6. 1 file changed, 2 insertions(+), 1 deletion(-)
  7. diff --git a/src/usermod.c b/src/usermod.c
  8. index e7d4351..685b50a 100644
  9. --- a/src/usermod.c
  10. +++ b/src/usermod.c
  11. @@ -1360,7 +1360,7 @@ static void process_flags (int argc, char **argv)
  12. Prog, (unsigned long) user_newid);
  13. exit (E_UID_IN_USE);
  14. }
  15. -
  16. +#ifdef ENABLE_SUBIDS
  17. if ( (vflg || Vflg)
  18. && !is_sub_uid) {
  19. fprintf (stderr,
  20. @@ -1376,6 +1376,7 @@ static void process_flags (int argc, char **argv)
  21. Prog, sub_gid_dbname (), "-w", "-W");
  22. exit (E_USAGE);
  23. }
  24. +#endif
  25. }
  26. /*
  27. --
  28. 1.7.9.5