]> granicus.if.org Git - shadow/commitdiff
* Fix typo in comment.
authornekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 26 Feb 2008 18:59:28 +0000 (18:59 +0000)
committernekral-guest <nekral-guest@5a98b0ae-9ef6-0310-add3-de5d479b70d7>
Tue, 26 Feb 2008 18:59:28 +0000 (18:59 +0000)
 * Move comment regarding FIRST_MEMBER_IS_ADMIN to
   where it belongs.
 * Indicate the end of the #ifdef FIRST_MEMBER_IS_ADMIN
   section.

ChangeLog
src/gpasswd.c

index 76a5cbf418c0d437118152f3d14fe1bc222f80bc..2a4e2ba770c35777f3cf518734248b9db781cc53 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-02-26  Nicolas François  <nicolas.francois@centraliens.net>
+
+       * src/gpasswd.c: Fix typo in comment.
+       * src/gpasswd.c: Move comment regarding FIRST_MEMBER_IS_ADMIN to
+       where it belongs.
+       * src/gpasswd.c: Indicate the end of the #ifdef FIRST_MEMBER_IS_ADMIN
+       section.
+
 2008-02-25  Nicolas François  <nicolas.francois@centraliens.net>
 
        * man/po/Makefile.in.in: Use --previous when merging PO files of
index 8a0fbbfbdbfdbb9ea2c418a1832da0b033c0bb89..89f1600611a6b30407fee8cbf9097ee5c5967af9 100644 (file)
@@ -423,12 +423,17 @@ static void check_perms (const struct group *gr)
 
 #ifdef FIRST_MEMBER_IS_ADMIN
        /*
-        * The policy here for changing a group is that 1) you must bes root
+        * The policy here for changing a group is that 1) you must be root
         * or 2) you must be the first listed member of the group. The
         * first listed member of a group can do anything to that group that
         * the root user can. The rationale for this hack is that the FIRST
         * user is probably the most important user in this entire group.
         */
+       /*
+        * This feature enabled by default could be a security problem when
+        * installed on existing systems where the first group member might
+        * be just a normal user.  --marekm
+        */
        if (!amroot) {
                if (gr->gr_mem[0] == (char *) 0) {
 #ifdef WITH_AUDIT
@@ -446,12 +451,7 @@ static void check_perms (const struct group *gr)
                        failure ();
                }
        }
-#else
-       /*
-        * This feature enabled by default could be a security problem when
-        * installed on existing systems where the first group member might
-        * be just a normal user.  --marekm
-        */
+#else                          /* ! FIRST_MEMBER_IS_ADMIN */
        if (!amroot) {
 #ifdef WITH_AUDIT
                audit_logger (AUDIT_USER_CHAUTHTOK, Prog,