ash: "you have mail" should ignore first change in mtime

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2015-10-09 16:02:53 +02:00
parent 2384162f64
commit 4cd99e7c6c

View File

@ -10073,8 +10073,9 @@ chkmail(void)
new_hash += (unsigned)statb.st_mtime;
}
if (!mail_var_path_changed && mailtime_hash != new_hash) {
if (mailtime_hash != 0)
out2str("you have mail\n");
mailtime_hash = new_hash;
out2str("you have mail\n");
}
mail_var_path_changed = 0;
popstackmark(&smark);