2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Be specific that we are talking about the Unix epoch; bug #615

This commit is contained in:
Todd C. Miller
2013-09-03 14:50:28 -06:00
parent 6b0a909d9a
commit bd52869056
2 changed files with 7 additions and 6 deletions

View File

@@ -402,14 +402,15 @@ remove_timestamp(bool remove)
status = rmdir(timestampdir);
if (status == -1 && errno != ENOENT) {
log_warning(0,
N_("unable to remove %s, will reset to the epoch"), path);
N_("unable to remove %s, will reset to the Unix epoch"),
path);
remove = false;
}
}
if (!remove) {
timevalclear(&tv);
if (touch(-1, path, &tv) == -1 && errno != ENOENT)
fatal(_("unable to reset %s to the epoch"), path);
fatal(_("unable to reset %s to the Unix epoch"), path);
}
}