From 5e55ab28a732d0082c803f1e473936a3d9c92f22 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 26 Apr 2010 14:49:14 -0700 Subject: Ignore comments in level file Standard practice to ignore lines starting with # --- lib/Vyatta/Login/User.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') 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 ) { -- cgit v1.2.3