(main, check_perms): New function check_perms().

Split the validation of the user's permissions out of main()
This commit is contained in:
nekral-guest
2007-12-28 20:46:24 +00:00
parent 6d09b4ce4d
commit 605a338216
2 changed files with 46 additions and 36 deletions

View File

@@ -10,6 +10,8 @@
an explicit call to audit_logger().
* src/groupadd.c (main): Before pam_end(), the return value of the
previous pam API was already checked. No need to validate it again.
* src/groupadd.c (main, check_perms): New function check_perms().
Split the validation of the user's permissions out of main()
2007-12-28 Nicolas François <nicolas.francois@centraliens.net>