[Pkg-wmaker-commits] [wmbiff] 03/07: paranoid test to see if /var/mail/nspring is constructed wrong.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Thu Aug 20 03:05:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to tag wmbiff_0_4_24
in repository wmbiff.
commit 01bd248a23cfa3acf16d611fd1adb784ca1ecb00
Author: bluehal <bluehal>
Date: Fri Jun 18 21:29:11 2004 +0000
paranoid test to see if /var/mail/nspring is constructed wrong.
---
wmbiff/wmbiff.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/wmbiff/wmbiff.c b/wmbiff/wmbiff.c
index ccf7b18..022ce71 100644
--- a/wmbiff/wmbiff.c
+++ b/wmbiff/wmbiff.c
@@ -1,4 +1,4 @@
-/* $Id: wmbiff.c,v 1.63 2004/04/28 00:19:03 bluehal Exp $ */
+/* $Id: wmbiff.c,v 1.64 2004/06/18 21:29:11 bluehal Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
@@ -457,7 +457,7 @@ static void init_biff(char *config_file)
strncpy(mbox[0].path, m, BUF_BIG - 1);
}
} else if ((m = getenv("USER")) != NULL) {
- /* we are using MAIL environment var. type mbox */
+ /* we will use the USER env var to find an mbox name */
if (strlen(m) + 10 + 1 > BUF_BIG) {
DMA(DEBUG_ERROR,
"USER environment var '%s' is too long.\n", m);
@@ -465,6 +465,11 @@ static void init_biff(char *config_file)
DMA(DEBUG_INFO, "Using /var/mail/%s.\n", m);
strcpy(mbox[0].path, "/var/mail/");
strncat(mbox[0].path, m, BUF_BIG - 1 - 10);
+ if (mbox[0].path[9] != '/') {
+ DMA(DEBUG_ERROR,
+ "Unexpected failure to construct /var/mail/username, please "
+ "report this with your operating system info and the version of wmbiff.");
+ }
}
} else {
DMA(DEBUG_ERROR, "Cannot open config file '%s' nor use the "
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbiff.git
More information about the Pkg-wmaker-commits
mailing list