Displaying 5 results from an estimated 5 matches for "mailstat".
2001 Aug 13
1
[PATCH] Maildir support
...openssh-2.9p2/session.c openssh-2.9p2.maildir/session.c
--- openssh-2.9p2/session.c Sun Jun 17 05:40:51 2001
+++ openssh-2.9p2.maildir/session.c Mon Aug 13 14:32:47 2001
@@ -1019,6 +1019,82 @@
}
#endif /* defined(HAVE_GETUSERATTR) */
+void
+do_mailcheck(const char *mailbox)
+{
+ struct stat mailstat;
+
+ if (stat(mailbox, &mailstat) != 0) {
+ debug("Mailcheck failed: %s: %s", mailbox,
+ strerror(errno));
+ return;
+ }
+ /* mbox format mailcheck */
+ if (S_ISREG(mailstat.st_mode)) {
+ if (mailstat.st_size == 0)
+ printf("No mail.\n");
+ else if (mailstat.st...
2000 Feb 27
0
[PATCH] Fix login.conf, expiration, BSD compatibility in OpenSSH
...quot;);
- }
- }
-#endif /* __FreeBSD__ */
if (stat(SSH_USER_RC, &st) >= 0) {
if (debug_flag)
fprintf(stderr, "Running /bin/sh %s\n", SSH_USER_RC);
@@ -2675,7 +2802,11 @@
mailbox = getenv("MAIL");
if (mailbox != NULL) {
if (stat(mailbox, &mailstat) != 0 || mailstat.st_size == 0)
+#ifdef __FreeBSD__
+ ;
+#else /* !__FreeBSD__ */
printf("No mail.\n");
+#endif /* __FreeBSD__ */
else if (mailstat.st_mtime < mailstat.st_atime)
printf("You have mail.\n");
else
--
Andrey A. Chernov
<ache at...
1998 Mar 14
1
Vunerable shell scripts
I made a list of /usr/bin scripts which allows /tmp races. Following
ones creates /tmp/something.$$, then, with no
permission/ownership checking, /tmp/something.$$.x (x may vary
;), or even performs suitable checks, but gives enough time to alter /tmp
contents: glibcbug, bashbug, znew, mailstat, autoupdate, x11perfcomp,
gccmakedep, pnmindex, xcopy, autoheader, cvsbug, rcs2log, updatedb, igawk,
zdiff, zcmp, findaffix, munchlist, report-kaffe-bug, mailshar, MakeTeXPK,
makeindex, texhash, ircbug [...]
This list has been made on RedHat 5.0 Linux distribution. It includes
only /bin/sh scripts...
2002 Dec 29
4
MRTG and Shorewall
Hello.
Is there any command in the shorewall script that prints how many or the
hits the last 5 min?
/Rickard Eriksson
2006 May 20
1
General compiz questions
I've been using compiz on KDE for a while now and I like the eye
candy. Thanks to all who made this possible. I'm usually a no-nonsense
guy who doesn't care about eye candy (I'm not even using a background
picture because I'm worried about the memory it'll use (on a machine
with 2 GB of RAM) :) ) but compiz stormed (sic!) my defences.
Now for my questions:
1. compiz is a