CVSROOT: acl.pl - ignore comments and empty lines
glen
glen at pld-linux.org
Tue Mar 27 22:44:49 CEST 2007
Author: glen Date: Tue Mar 27 20:44:48 2007 GMT
Module: CVSROOT Tag: HEAD
---- Log message:
- ignore comments and empty lines
---- Files affected:
CVSROOT:
acl.pl (1.8 -> 1.9)
---- Diffs:
================================================================
Index: CVSROOT/acl.pl
diff -u CVSROOT/acl.pl:1.8 CVSROOT/acl.pl:1.9
--- CVSROOT/acl.pl:1.8 Wed Jun 4 01:30:02 2003
+++ CVSROOT/acl.pl Tue Mar 27 22:44:43 2007
@@ -17,7 +17,8 @@
while (<ACL>) {
chomp;
- ($rpath, $ruser, $raction) = split(/\s+/);
+ next if /^$/ or /^#/;
+ ($rpath, $ruser, $raction) = split(/\s+/, 3);
if ($file =~ $rpath && $user =~ $ruser) {
return if ($raction =~ /^(accept|allow|ok)$/i);
================================================================
---- CVS-web:
http://cvs.pld-linux.org/CVSROOT/acl.pl?r1=1.8&r2=1.9&f=u
More information about the pld-cvs-commit
mailing list