[git commit] ash: "you have mail" should ignore first change in mtime

Denys Vlasenko vda.linux at googlemail.com
Fri Oct 9 14:02:53 UTC 2015


commit: http://git.busybox.net/busybox/commit/?id=4cd99e7c6c1af77721b890ed5ae26d747796c4bd
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 shell/ash.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/shell/ash.c b/shell/ash.c
index 07e7f62..b096812 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -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);


More information about the busybox-cvs mailing list