Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 1995 20:09:04 +0200
From:      Mark Murray <mark@grondar.za>
To:        current@FreeBSD.org
Subject:   Small patch for ncftp-1.9.?
Message-ID:  <199503271809.UAA23773@grunt.grondar.za>

next in thread | raw e-mail | index | archive | help
Hi

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:

(please apply in src/usr.bin/ncftp)


*** main.#CTM#	Fri Mar 10 08:11:20 1995
--- main.c	Mon Mar 27 20:03:11 1995
***************
*** 461,466 ****
--- 461,468 ----
  			(void) Strncpy(uinfo.homedir, pw->pw_dir);
  		cp = getenv("MAIL");
  		if (cp == NULL)
+ 			cp = getenv("MAILPATH");
+ 		if (cp == NULL)
  			cp = getenv("mail");
  		if (cp == NULL)
  			(void) sprintf(str, "/usr/spool/mail/%s", uinfo.username);

-- 
Mark Murray
46 Harvey Rd, Claremont, Cape Town 7700, South Africa
+27 21 61-3768 GMT+0200



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503271809.UAA23773>