summaryrefslogtreecommitdiffstats
path: root/usr.bin/ncftp/main.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1995-03-30 01:13:41 +0000
committerache <ache@FreeBSD.org>1995-03-30 01:13:41 +0000
commit8584f1d49486df152343e30c032f853b4b72e620 (patch)
tree375d6fba02544a991cb00418d6078dcf018b8bc9 /usr.bin/ncftp/main.c
parente70e13fa2c8812e0d8cbae15ec95aaad4405f558 (diff)
downloadFreeBSD-src-8584f1d49486df152343e30c032f853b4b72e620.zip
FreeBSD-src-8584f1d49486df152343e30c032f853b4b72e620.tar.gz
Fix default mailpath
Diffstat (limited to 'usr.bin/ncftp/main.c')
-rw-r--r--usr.bin/ncftp/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index c1b17b8..49adfa7 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -460,10 +460,15 @@ int getuserinfo(void)
else
(void) Strncpy(uinfo.homedir, pw->pw_dir);
cp = getenv("MAIL");
+#ifndef __FreeBSD__
if (cp == NULL)
cp = getenv("mail");
if (cp == NULL)
(void) sprintf(str, "/usr/spool/mail/%s", uinfo.username);
+#else
+ if (cp == NULL)
+ (void) sprintf(str, "/var/mail/%s", uinfo.username);
+#endif
else
(void) Strncpy(str, cp);
cp = str;
OpenPOWER on IntegriCloud