summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-26 14:49:14 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2010-04-26 14:49:14 -0700
commit5e55ab28a732d0082c803f1e473936a3d9c92f22 (patch)
tree22e0e4e52af61c3cf559a6173ef6f557d91108a5 /lib
parent67fd8444e756bcf5e86f81f242c57b7eab76930e (diff)
downloadvyatta-cfg-quagga-5e55ab28a732d0082c803f1e473936a3d9c92f22.tar.gz
vyatta-cfg-quagga-5e55ab28a732d0082c803f1e473936a3d9c92f22.zip
Ignore comments in level file
Standard practice to ignore lines starting with #
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Vyatta/Login/User.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Vyatta/Login/User.pm b/lib/Vyatta/Login/User.pm
index 419a882d..fa0cca7d 100755
--- a/lib/Vyatta/Login/User.pm
+++ b/lib/Vyatta/Login/User.pm
@@ -47,7 +47,9 @@ sub _level_groups {
while (<$f>) {
chomp;
+ # Ignore blank lines and comments
next unless $_;
+ next if /^#/;
my ( $l, $g ) = split /:/;
if ( $l eq $level ) {