diff options
author | symka <symka@NetBSD.org> | 2005-06-30 06:08:56 +0000 |
---|---|---|
committer | symka <symka@NetBSD.org> | 2005-06-30 06:08:56 +0000 |
commit | 4365ff06b4ad27e4a3e9f5f9594d96cb96c505fe (patch) | |
tree | b79507c99b834d27661d6759c3c08e527cf50869 /countmail | |
parent | aac56d744cde95cb1084b5a3fab946a95a9dd4d3 (diff) | |
download | bsdgames-darwin-4365ff06b4ad27e4a3e9f5f9594d96cb96c505fe.tar.gz bsdgames-darwin-4365ff06b4ad27e4a3e9f5f9594d96cb96c505fe.tar.zst bsdgames-darwin-4365ff06b4ad27e4a3e9f5f9594d96cb96c505fe.zip |
Fixed error on a nonexistent mail spool file, when countmail can't find it\n\nCloses PR misc/29526\n\n\(Code submitted in PR misc/29526 by Andreas Eder)
Diffstat (limited to 'countmail')
-rw-r--r-- | countmail/countmail | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/countmail/countmail b/countmail/countmail index 44883098..d2d1281b 100644 --- a/countmail/countmail +++ b/countmail/countmail @@ -1,5 +1,5 @@ #!/bin/sh -# $NetBSD: countmail,v 1.5 2002/07/02 17:18:21 mycroft Exp $ +# $NetBSD: countmail,v 1.6 2005/06/30 06:08:56 symka Exp $ # # Copyright (c) 1998, 2002 The NetBSD Foundation, Inc. @@ -48,7 +48,7 @@ # for krb. #set -- `from -t` #v=$3 -set -- `from | wc -l` +set -- `from 2>/dev/null |wc -l` v=$1 #v=`from | wc -l` |