Files
shadow/src
Masatake YAMATO fb96d3f84d useradd: make the option specstr passed to getopt_long extensible
It was hard to extend the option specification string passed to
getopt_long as the third argument.

The origian code had a branch with WITH_SELINUX ifdef condition. If
one wants to add one more option char with another ifdef condition
like ENABLE_SUBIDS to the spec, the one must enumerate the specs for
all combinations of the conditions:

*  WITH_SELINUX &&  ENABLE_SUBIDS
*  WITH_SELINUX && !ENABLE_SUBIDS
* !WITH_SELINUX &&  ENABLE_SUBIDS
* !WITH_SELINUX && !ENABLE_SUBIDS

With this change, you can append an option char to the spec.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
2022-08-01 15:45:10 +02:00
..
2022-04-03 21:07:09 -05:00
2022-05-24 07:49:11 -05:00
2022-05-24 07:49:11 -05:00
2021-12-23 19:36:50 -06:00
2022-03-18 16:02:01 -05:00
2022-05-06 10:13:51 -05:00
2021-12-23 19:36:50 -06:00
2022-05-06 10:13:51 -05:00
2021-12-23 19:36:50 -06:00
2022-05-06 10:13:51 -05:00
2022-05-24 07:49:11 -05:00