diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-09-12 16:32:14 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-09-12 16:32:14 +0000 |
commit | 91e9868e4ff0f5cd4e202282b66fbb2fbcc7c2e9 (patch) | |
tree | f7374886a49b3b9406c85024d6f5cf353bcbac79 /session.c | |
parent | 19d7b8d3fa2c73d68ed60250c091f70ec44edbec (diff) |
- jakob@cvs.openbsd.org 2001/08/16 19:18:34
[servconf.c servconf.h session.c sshd.8]
deprecate CheckMail. ok markus@
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 21 |
1 files changed, 1 insertions, 20 deletions
@@ -33,7 +33,7 @@ | |||
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "includes.h" | 35 | #include "includes.h" |
36 | RCSID("$OpenBSD: session.c,v 1.99 2001/07/09 07:04:53 deraadt Exp $"); | 36 | RCSID("$OpenBSD: session.c,v 1.100 2001/08/16 19:18:34 jakob Exp $"); |
37 | 37 | ||
38 | #include "ssh.h" | 38 | #include "ssh.h" |
39 | #include "ssh1.h" | 39 | #include "ssh1.h" |
@@ -1459,25 +1459,6 @@ do_child(Session *s, const char *command) | |||
1459 | if (!options.use_login) { | 1459 | if (!options.use_login) { |
1460 | char buf[256]; | 1460 | char buf[256]; |
1461 | 1461 | ||
1462 | /* | ||
1463 | * Check for mail if we have a tty and it was enabled | ||
1464 | * in server options. | ||
1465 | */ | ||
1466 | if (s->ttyfd != -1 && options.check_mail) { | ||
1467 | char *mailbox; | ||
1468 | struct stat mailstat; | ||
1469 | |||
1470 | mailbox = getenv("MAIL"); | ||
1471 | if (mailbox != NULL) { | ||
1472 | if (stat(mailbox, &mailstat) != 0 || | ||
1473 | mailstat.st_size == 0) | ||
1474 | printf("No mail.\n"); | ||
1475 | else if (mailstat.st_mtime < mailstat.st_atime) | ||
1476 | printf("You have mail.\n"); | ||
1477 | else | ||
1478 | printf("You have new mail.\n"); | ||
1479 | } | ||
1480 | } | ||
1481 | /* Start the shell. Set initial character to '-'. */ | 1462 | /* Start the shell. Set initial character to '-'. */ |
1482 | buf[0] = '-'; | 1463 | buf[0] = '-'; |
1483 | strncpy(buf + 1, cp, sizeof(buf) - 1); | 1464 | strncpy(buf + 1, cp, sizeof(buf) - 1); |