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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user