Date: Thu, 23 Sep 1999 02:43:40 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: Doug <Doug@gorean.org> Cc: peter.jeremy@alcatel.com.au, FreeBSD-bugs@FreeBSD.ORG Subject: Re: bin/13909: /etc/security problems: IPFIREWALL and passwd comments Message-ID: <21066.938047420@axl.noc.iafrica.com> In-Reply-To: Your message of "Wed, 22 Sep 1999 17:30:38 MST." <Pine.BSF.4.10.9909221722370.31986-100000@dt014nb6.san.rr.com>
index | next in thread | previous in thread | raw e-mail
On Wed, 22 Sep 1999 17:30:38 MST, Doug wrote:
> The current awk bit ignores blank lines so I don't see that as a
> problem.
I have both blank lines and comments in my master.passwd . The current
code spews all of both kinds of line. Jeremy's variation on the theme
spews the blank lines.
Makes for an pretty anoying e-mail message when you have enough blank
lines. :-)
I'm not pointing out a problem with the patch, just another nit to
squish at the same time. I'm no awk person, but I imagine something
along these lines might work:
awk -F: '$1 !~ /^([#+]|[ \t]*$)/ && $2=="" {print $0}' \
/etc/master.passwd
Ciao,
Sheldon.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21066.938047420>
