From 4365ff06b4ad27e4a3e9f5f9594d96cb96c505fe Mon Sep 17 00:00:00 2001 From: symka Date: Thu, 30 Jun 2005 06:08:56 +0000 Subject: 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) --- countmail/countmail | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'countmail') 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` -- cgit v1.2.3-56-ge451