]> granicus.if.org Git - linux-pam/commitdiff
Relevant BUGIDs:
authorTomas Mraz <tm@t8m.info>
Mon, 1 Dec 2008 11:26:59 +0000 (11:26 +0000)
committerTomas Mraz <tm@t8m.info>
Mon, 1 Dec 2008 11:26:59 +0000 (11:26 +0000)
Purpose of commit: bugfix

Commit summary:
---------------
2008-12-01  Tomas Mraz <t8m@centrum.cz>

        * modules/pam_access/pam_access.8.xml: Fix description of nodefgroup
        option.

        * modules/pam_group/pam_group.c (is_same): Fix check for correct
        string length.

ChangeLog
modules/pam_access/pam_access.8.xml
modules/pam_group/pam_group.c

index 3c055f912ca59f34ef28a3cda0409d82428abf9d..5f452a1b127faca40ed90f5ec19971d9c3a128ba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2008-12-01  Tomas Mraz <t8m@centrum.cz>
+
+       * modules/pam_access/pam_access.8.xml: Fix description of nodefgroup
+       option.
+
+       * modules/pam_group/pam_group.c (is_same): Fix check for correct
+       string length.
+
 2008-11-29  Thorsten Kukuk  <kukuk@thkukuk.de>
 
        * configure.in: Check for xcrypt.h, fix typo in libaudit check.
index ff0485931789cc0f0edf1599c9c33dc9d94c019c..6b031d2e599f3f672dae80805983d89d56934079 100644 (file)
         </term>
         <listitem>
           <para>
-            The group database will not be used for tokens not
-            identified as account name.
+            User tokens which are not enclosed in parentheses will not be
+           matched against the group database. The backwards compatible default is
+            to try the group database match even for tokens not enclosed
+            in parentheses.
           </para>
         </listitem>
       </varlistentry>
index bddcf1cb798d1d94aa1f752e5536e58b301ecba7..4a931c4f85afcffbce3d474d14645ff2f086410b 100644 (file)
@@ -331,10 +331,10 @@ is_same (const pam_handle_t *pamh UNUSED,
      }
 
      /* Ok, we know that b is a substring from A and does not contain
-       wildcards, but now the length of both strings must be the same,
-       too. */
-     if (strlen (a) != strlen(b))
-       return FALSE;
+        wildcards, but now the length of both strings must be the same,
+        too. In this case it means, a[i] has to be the end of the string. */
+     if (a[i] != '\0')
+          return FALSE;
 
      return ( !len );
 }