← Commit list

4cd99e7c6

Denys Vlasenko
Denys Vlasenko
2015-10-09
SUCCESS Duration: 217s

Subject

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

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

shell/ash.c+2 -1
@@ -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);