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