From owner-freebsd-bugs Mon Aug 5 21:50: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E56737B400 for ; Mon, 5 Aug 2002 21:50:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4D0243E5E for ; Mon, 5 Aug 2002 21:50:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g764o4JU042570 for ; Mon, 5 Aug 2002 21:50:04 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g764o4PD042569; Mon, 5 Aug 2002 21:50:04 -0700 (PDT) Date: Mon, 5 Aug 2002 21:50:04 -0700 (PDT) Message-Id: <200208060450.g764o4PD042569@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Stephen Cravey Subject: Re: misc/41328: ssh logins in 4.6.1 no longer give incoming mail status Reply-To: Stephen Cravey Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/41328; it has been noted by GNATS. From: Stephen Cravey To: "Andrey A. Chernov" Cc: Subject: Re: misc/41328: ssh logins in 4.6.1 no longer give incoming mail status Date: Mon, 5 Aug 2002 23:42:33 -0500 (CDT) As a (temporary?) workaround, I've turned your patch into a standalone program that can be run on login. (I'm lazy.) This can be run from the .login (t/csh users) or some other way for other shells. Yes there's a compiler warning. If someone would like to fix it, I suppose they should feel free. Otherwise it works fine. I don't want to get deeplyinto the politics of this, but at a minimum, this change (and/or official position why it won't be fixed) should probably be reflected in the next release notes for freebsd in the openssh section. I realize we haven't really had release notes for 4.6.x yet. Compilation and installation is left as an exercise for the reader. -Stephen #include #include #include int main(void) { char *mailbox; struct stat mailstat; mailbox = getenv("MAIL"); if (mailbox != NULL) { if (stat(mailbox, &mailstat) != 0 || mailstat.st_size == 0); else if (mailstat.st_mtime < mailstat.st_atime) printf("You have mail.\n"); else printf("You have new mail.\n"); } } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message