Fix building without subordinate IDs support
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
4911773b77
commit
420943657c
@ -52,10 +52,13 @@ usbin_PROGRAMS = \
|
|||||||
noinst_PROGRAMS = id sulogin
|
noinst_PROGRAMS = id sulogin
|
||||||
|
|
||||||
suidbins = su
|
suidbins = su
|
||||||
suidubins = chage chfn chsh expiry gpasswd newgrp passwd newuidmap newgidmap
|
suidubins = chage chfn chsh expiry gpasswd newgrp passwd
|
||||||
if ACCT_TOOLS_SETUID
|
if ACCT_TOOLS_SETUID
|
||||||
suidubins += chage chgpasswd chpasswd groupadd groupdel groupmod newusers useradd userdel usermod
|
suidubins += chage chgpasswd chpasswd groupadd groupdel groupmod newusers useradd userdel usermod
|
||||||
endif
|
endif
|
||||||
|
if ENABLE_SUBIDS
|
||||||
|
suidubins += newgidmap newuidmap
|
||||||
|
endif
|
||||||
|
|
||||||
if WITH_TCB
|
if WITH_TCB
|
||||||
suidubins -= passwd
|
suidubins -= passwd
|
||||||
|
@ -1361,6 +1361,7 @@ static void process_flags (int argc, char **argv)
|
|||||||
exit (E_UID_IN_USE);
|
exit (E_UID_IN_USE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_SUBIDS
|
||||||
if ( (vflg || Vflg)
|
if ( (vflg || Vflg)
|
||||||
&& !is_sub_uid) {
|
&& !is_sub_uid) {
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
@ -1376,6 +1377,7 @@ static void process_flags (int argc, char **argv)
|
|||||||
Prog, sub_gid_dbname (), "-w", "-W");
|
Prog, sub_gid_dbname (), "-w", "-W");
|
||||||
exit (E_USAGE);
|
exit (E_USAGE);
|
||||||
}
|
}
|
||||||
|
#endif /* ENABLE_SUBIDS */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user