From owner-freebsd-current Mon Mar 27 11:35:58 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id LAA01479 for current-outgoing; Mon, 27 Mar 1995 11:35:58 -0800 Received: from grunt.grondar.za (grunt.grondar.za [196.7.18.129]) by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id LAA01423 for ; Mon, 27 Mar 1995 11:35:43 -0800 Received: from localhost (localhost [127.0.0.1]) by grunt.grondar.za (8.6.11/8.6.9) with SMTP id UAA23773 for ; Mon, 27 Mar 1995 20:09:04 +0200 Message-Id: <199503271809.UAA23773@grunt.grondar.za> X-Authentication-Warning: grunt.grondar.za: Host localhost didn't use HELO protocol To: current@FreeBSD.org Subject: Small patch for ncftp-1.9.? Date: Mon, 27 Mar 1995 20:09:04 +0200 From: Mark Murray Sender: current-owner@FreeBSD.org Precedence: bulk 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