Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2000 03:10:03 -0700 (PDT)
From:      Sheldon Hearn <sheldonh@uunet.co.za>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: misc/20575: /etc/security errors if no old compressed files 
Message-ID:  <200008141010.DAA38622@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR misc/20575; it has been noted by GNATS.

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: Brian Somers <brian@Awfulhak.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: misc/20575: /etc/security errors if no old compressed files 
Date: Mon, 14 Aug 2000 12:06:53 +0200

 On Sun, 13 Aug 2000 16:30:05 MST, Brian Somers wrote:
 
 >  > >Number:         20575
 >  > >Category:       misc
 >  > >Synopsis:       /etc/security errors if no old compressed files
 >  
 >  Perhaps zcat needs a -s option (as cat(1) has).
 
 Perhaps, but you could get around this problem quite easily with the
 following patch.
 
 Ciao,
 Sheldon.
 
 Index: security
 ===================================================================
 RCS file: /home/ncvs/src/etc/security,v
 retrieving revision 1.41
 diff -u -d -r1.41 security
 --- security	2000/08/07 09:08:35	1.41
 +++ security	2000/08/14 10:05:05
 @@ -136,16 +136,22 @@
  	fi
  fi
  
 +msgfiles="`ls $LOG/messages.0* $LOG/messages 2>/dev/null`"
 +
  # Show login failures
  #
  separator
  echo "${host} login failures:"
 -zcat -f $LOG/messages.0* $LOG/messages | grep -i "^$yesterday.*login failure"
 +if [ -n "${msgfiles}" ]; then
 +	zcat -f ${msgfiles} | grep -i "^$yesterday.*login failure"
 +fi
  
  # Show tcp_wrapper warning messages
  #
  separator
  echo "${host} refused connections:"
 -zcat -f $LOG/messages.0* $LOG/messages | grep -i "^$yesterday.*refused connect"
 +if [ -n "${msgfiles}" ]; then
 +	zcat -f ${msgfiles} | grep -i "^$yesterday.*refused connect"
 +fi
  
  rm -f ${TMP}
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200008141010.DAA38622>