Fix files utility not to set timestamps
Commitf33b96b1
(v4.3.12) made files again set timestamps. That was intentionally suppressed in commit990eb46b
(v4.3.10), because it facilitates attacks against the PRNG. Commit8f98e53a
(v4.3.0) had added it as a feature. Fix by making files's main() pass new flag EFF_NOTIME to ef_open(). Implement the flag in do_write().
This commit is contained in:
parent
2a125c5463
commit
967122ae0b
3 changed files with 7 additions and 4 deletions
|
@ -131,7 +131,7 @@ main(int argc, char *argv[])
|
|||
for (i = 0; i < EF_MAX; i++) {
|
||||
if (!EF_IS_GAME_STATE(i))
|
||||
continue;
|
||||
if (!ef_open(i, EFF_CREATE, -1)) {
|
||||
if (!ef_open(i, EFF_CREATE | EFF_NOTIME, -1)) {
|
||||
perror("ef_open");
|
||||
exit(1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue