diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-08-16 19:18:35 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2001-08-16 19:18:35 +0000 |
commit | 3fd82185ca30cfa909029d2082b039bba5037c90 (patch) | |
tree | e26785130ba1ece1ce276931b3e7b4f6219cb777 /usr.bin/ssh/session.c | |
parent | b77a6ae1d00754efca4fa54131ce21f85c642c5f (diff) |
deprecate CheckMail. ok markus@
----------------------------------------------------------------------
Diffstat (limited to 'usr.bin/ssh/session.c')
-rw-r--r-- | usr.bin/ssh/session.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/usr.bin/ssh/session.c b/usr.bin/ssh/session.c index f19424783b2..1883c1f3d37 100644 --- a/usr.bin/ssh/session.c +++ b/usr.bin/ssh/session.c @@ -33,7 +33,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: session.c,v 1.99 2001/07/09 07:04:53 deraadt Exp $"); +RCSID("$OpenBSD: session.c,v 1.100 2001/08/16 19:18:34 jakob Exp $"); #include "ssh.h" #include "ssh1.h" @@ -1087,25 +1087,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); |