diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-26 14:49:14 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2010-04-26 14:49:14 -0700 |
commit | 5e55ab28a732d0082c803f1e473936a3d9c92f22 (patch) | |
tree | 22e0e4e52af61c3cf559a6173ef6f557d91108a5 /lib | |
parent | 67fd8444e756bcf5e86f81f242c57b7eab76930e (diff) | |
download | vyatta-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-x | lib/Vyatta/Login/User.pm | 2 |
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 ) { |