summaryrefslogtreecommitdiff
path: root/games/countmail
diff options
context:
space:
mode:
authorsymka <symka@NetBSD.org>2005-06-30 06:08:56 +0000
committersymka <symka@NetBSD.org>2005-06-30 06:08:56 +0000
commit944ff7f105d86df064bbb3ce1ba31c1fe4f0db63 (patch)
treecbeb65fc240ab31e5c7a01950d92ea557a02a366 /games/countmail
parenta85b0c68e0c71cbef196056bf3e9a50f594d535a (diff)
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 'games/countmail')
-rw-r--r--games/countmail/countmail4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/countmail/countmail b/games/countmail/countmail
index 44883098153..d2d1281bfb7 100644
--- a/games/countmail/countmail
+++ b/games/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`