Avoid strerror() when possible and just rely on warning/error
to handle errno in the proper locale.
This commit is contained in:
@@ -400,8 +400,7 @@ remove_timestamp(bool remove)
|
||||
status = rmdir(timestampdir);
|
||||
if (status == -1 && errno != ENOENT) {
|
||||
log_error(0,
|
||||
N_("unable to remove %s (%s), will reset to the epoch"),
|
||||
path, strerror(errno));
|
||||
N_("unable to remove %s, will reset to the epoch"), path);
|
||||
remove = false;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user