From: boyd@prl.dec.com (Boyd Roberts)
Subject: Re: "You have mail" vs "You have new mail"
Date: 7 Aug 91 12:48:00 GMT [thread overview]
Message-ID: <1991Aug7.124800.18430@prl.dec.com> (raw)
In-Reply-To: scs.681511488@wotan.iti.org
In article <scs.681511488@wotan.iti.org>, scs@iti.org (Steve Simmons) writes:
>
> 723c727
> < printf("You have mail.\n");
> ---
> > printf("You have %smail.\n", (statb.st_mtime > statb.st_atime) ? "new " : "");
>
This doesn't do the job. You want to test the last logout time against
statb.st_mtime and that value is not easy to determine. I'm sure SCO
could hide this in their C2 security database, but scanning wtmp is not on.
The st_atime vs st_mtime test is just not right.
Boyd Roberts boyd@prl.dec.com
``When the going gets wierd, the weird turn pro...''
prev parent reply other threads:[~1991-08-07 12:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-08-06 20:44 "You have mail" vs "You have new mail" Steve Simmons
1991-08-07 12:48 ` Boyd Roberts [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox