Avoid strerror() when possible and just rely on warning/error

to handle errno in the proper locale.
This commit is contained in:
Todd C. Miller
2012-11-09 16:32:29 -05:00
parent e28ce01fe0
commit 56de023de8
6 changed files with 27 additions and 16 deletions

View File

@@ -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;
}
}