Fixed typos
authorJamie Cameron <jcameron@webmin.com>
Wed, 28 Nov 2007 00:28:33 +0000 (00:28 +0000)
committerJamie Cameron <jcameron@webmin.com>
Wed, 28 Nov 2007 00:28:33 +0000 (00:28 +0000)
pam/edit_pam.cgi
pam/pam-lib.pl

index 9d2d322..e4f74f6 100755 (executable)
@@ -47,12 +47,11 @@ foreach $t ('auth', 'account', 'session', 'password') {
                        local $mn = $m->{'module'};
                        $mn =~ s/^.*\///;
                        local @cols;
-                       if ($m->{'include'}) {
-                               # Second type of include, using @
-                               push(@cols, "<a href='edit_atinc.cgi?".
+                       if ($m->{'control'} eq 'include') {
+                               # Included module
+                               push(@cols, "<a href='edit_inc.cgi?".
                                    "idx=$pam->{'index'}&midx=$m->{'index'}'>".
-                                   &text('edit_inc',
-                                         "<tt>$m->{'include'}</tt>")."</a>");
+                                   &text('edit_inc', "<tt>$mn</tt>")."</a>");
                                @rtds = ( "colspan=4", "width=5%" );
                                }
                        else {
index fd9677c..5c04f34 100644 (file)
@@ -36,7 +36,7 @@ FILE: foreach $f (readdir(DIR)) {
                                       'index' => @{$serv->{'mods'}}+0 };
                        push(@{$serv->{'mods'}}, $mod);
                        }
-               elsif (/^\s*(\S+)\s+\[([^\]*\]\s+(\S+)\s*(.*)$/) {
+               elsif (/^\s*(\S+)\s+\[([^\]]*)\]\s+(\S+)\s*(.*)$/) {
                        # Line with special rules .. ignore for now
                        }
                elsif (/^\s*(\S+)\s+(\S+)\s+(\S+)\s*(.*)$/) {