X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/453b4bd040d610a21d2846a46722db4024592b0e..8fbc356de176c10b7d4503b6c6bbbe9954f95b77:/session.c diff --git a/session.c b/session.c index 8d7ef52b..1e9e3228 100644 --- a/session.c +++ b/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.98 2001/07/02 13:59:15 markus Exp $"); +RCSID("$OpenBSD: session.c,v 1.100 2001/08/16 19:18:34 jakob Exp $"); #include "ssh.h" #include "ssh1.h" @@ -1459,25 +1459,6 @@ do_child(Session *s, const char *command) if (!options.use_login) { char buf[256]; - /* - * Check for mail if we have a tty and it was enabled - * in server options. - */ - if (s->ttyfd != -1 && options.check_mail) { - char *mailbox; - struct stat mailstat; - - mailbox = getenv("MAIL"); - if (mailbox != NULL) { - if (stat(mailbox, &mailstat) != 0 || - mailstat.st_size == 0) - printf("No mail.\n"); - else if (mailstat.st_mtime < mailstat.st_atime) - printf("You have mail.\n"); - else - printf("You have new mail.\n"); - } - } /* Start the shell. Set initial character to '-'. */ buf[0] = '-'; strncpy(buf + 1, cp, sizeof(buf) - 1); @@ -1499,7 +1480,7 @@ do_child(Session *s, const char *command) #ifdef LOGIN_NEEDS_TERM s->term? s->term : "unknown", #endif - "-p", "-f", "--", pw->pw_name, NULL); + "-p", "-f", "--", pw->pw_name, (char *)NULL); /* Login couldn't be executed, die. */