summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-03-31 07:02:49 +0000
committerjkh <jkh@FreeBSD.org>1995-03-31 07:02:49 +0000
commit72a0829984c0cd7b212dd1dd84508eb2b4db0817 (patch)
tree7c6fe9b1fa9774fa1db41c468f560ffd675e5322
parent2bffdfd11de5e4a45bd252b7fd88fde8648fd199 (diff)
downloadFreeBSD-src-72a0829984c0cd7b212dd1dd84508eb2b4db0817.zip
FreeBSD-src-72a0829984c0cd7b212dd1dd84508eb2b4db0817.tar.gz
I noticed that the current version of ncftp dos not do the very useful
job af warning me about mail as my work version does. This patch will will fix this for bash(1) if MAILPATH is exported: Submitted by: Mark Murray <mark@grondar.za>
-rw-r--r--usr.bin/ncftp/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index 49adfa7..13c5fb0 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -462,6 +462,8 @@ int getuserinfo(void)
cp = getenv("MAIL");
#ifndef __FreeBSD__
if (cp == NULL)
+ cp = getenv("MAILPATH");
+ if (cp == NULL)
cp = getenv("mail");
if (cp == NULL)
(void) sprintf(str, "/usr/spool/mail/%s", uinfo.username);
OpenPOWER on IntegriCloud