Subject: Re: bin/7041: /etc/security uses un-documented, non-standard, awk variable
To: None <gnats-bugs@gnats.netbsd.org,>
From: Greg A. Woods <woods@most.weird.com>
List: netbsd-bugs
Date: 02/24/1999 00:54:11
[ On , February 24, 1999 at 05:50:01 (-0000), gnats-bugs@gnats.netbsd.org wrote: ]
> Subject: Re: bin/7041: /etc/security uses un-documented, non-standard, awk variable
>

GRRR.... I didn't have all options enabled on my first test.

Here's a more complete patch:

Index: etc/security
===================================================================
RCS file: /cvs/NetBSD/src/etc/security,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 etc/security
*** etc/security	1998/11/16 19:24:16	1.1.1.2
--- etc/security	1999/02/24 05:45:13
***************
*** 53,59 ****
  	awk '
  	BEGIN {
  		while ( getline < "/etc/shells" > 0 ) {
! 			if ($LINE ~ /^\#/ || $LINE ~ /^$/ )
  				continue;
  			shells[$1]++;
  		}
--- 53,59 ----
  	awk '
  	BEGIN {
  		while ( getline < "/etc/shells" > 0 ) {
! 			if ($0 ~ /^\#/ || $0 ~ /^$/ )
  				continue;
  			shells[$1]++;
  		}
***************
*** 410,416 ****
  if checkyesno check_nfs && [ -f /etc/exports ]; then
  	awk '{
  		# ignore comments and blank lines
! 		if ($LINE ~ /^\#/ || $LINE ~ /^$/ )
  			next;
  
  		readonly = 0;
--- 410,416 ----
  if checkyesno check_nfs && [ -f /etc/exports ]; then
  	awk '{
  		# ignore comments and blank lines
! 		if ($0 ~ /^\#/ || $0 ~ /^$/ )
  			next;
  
  		readonly = 0;

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>      <robohack!woods>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>