diff options
author | Karel Zak | 2016-02-15 13:55:37 +0100 |
---|---|---|
committer | Karel Zak | 2016-02-15 14:07:25 +0100 |
commit | c619d3d167115990e9228b27851e0cc2faa8f936 (patch) | |
tree | 01fa30c52400922e1e900a6fae0cbd8e245abefd /m4 | |
parent | libsmartcols: print title only with SCOLS_FMT_HUMAN (diff) | |
download | kernel-qcow2-util-linux-c619d3d167115990e9228b27851e0cc2faa8f936.tar.gz kernel-qcow2-util-linux-c619d3d167115990e9228b27851e0cc2faa8f936.tar.xz kernel-qcow2-util-linux-c619d3d167115990e9228b27851e0cc2faa8f936.zip |
su: clean up groups initialization
This patch does not change any su/runuser behaviour, code changes:
* don't use huge groups[NGROUPS_MAX]; the array has 256k, but we need
it only occasionally when -G/-g specified.
* the current code uses groups[0] for -g and the rest for -G, this patch adds
'gid' to remember -g argument to avoid memmove()
* add function add_supp_group() to simplify su_main()
* add note about -G and -g relation to the man pages (undocumented now)
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions