aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2015-10-09 16:02:53 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-09 16:02:53 +0200
commit4cd99e7c6c1af77721b890ed5ae26d747796c4bd (patch)
tree09df8f4ad3b59bace902934496d90f339e0f65bc
parent2384162f6462f232a0d709e64f7d20bb3dbca503 (diff)
downloadbusybox-w32-4cd99e7c6c1af77721b890ed5ae26d747796c4bd.tar.gz
busybox-w32-4cd99e7c6c1af77721b890ed5ae26d747796c4bd.tar.bz2
busybox-w32-4cd99e7c6c1af77721b890ed5ae26d747796c4bd.zip
ash: "you have mail" should ignore first change in mtime
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--shell/ash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 07e7f621a..b09681296 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -10073,8 +10073,9 @@ chkmail(void)
10073 new_hash += (unsigned)statb.st_mtime; 10073 new_hash += (unsigned)statb.st_mtime;
10074 } 10074 }
10075 if (!mail_var_path_changed && mailtime_hash != new_hash) { 10075 if (!mail_var_path_changed && mailtime_hash != new_hash) {
10076 if (mailtime_hash != 0)
10077 out2str("you have mail\n");
10076 mailtime_hash = new_hash; 10078 mailtime_hash = new_hash;
10077 out2str("you have mail\n");
10078 } 10079 }
10079 mail_var_path_changed = 0; 10080 mail_var_path_changed = 0;
10080 popstackmark(&smark); 10081 popstackmark(&smark);