From 72a0829984c0cd7b212dd1dd84508eb2b4db0817 Mon Sep 17 00:00:00 2001 From: jkh Date: Fri, 31 Mar 1995 07:02:49 +0000 Subject: 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 --- usr.bin/ncftp/main.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.1