summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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