summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--isys/uncpio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/isys/uncpio.c b/isys/uncpio.c
index 65dd2ebdd..fc08a56b4 100644
--- a/isys/uncpio.c
+++ b/isys/uncpio.c
@@ -484,7 +484,8 @@ int myCpioInstallArchive(gzFile stream, struct cpioFileMapping * mappings,
do {
if ((rc = getNextHeader(&fd, &ch, NULL))) {
- fprintf(stderr, _("error %d reading header: %s\n"), rc, strerror(errno));
+ fprintf(stderr, _("error %d reading header: %s\n"), rc,
+ myCpioStrerror(rc));
return CPIOERR_BAD_HEADER;
}
@@ -734,7 +735,7 @@ int myCpioFilterArchive(gzFile inStream, gzFile outStream, char ** patterns) {
do {
if ((rc = getNextHeader(&inFd, &ch, &pHeader))) {
fprintf(stderr, _("error %d reading header: %s\n"), rc,
- strerror(errno));
+ myCpioStrerror(rc));
return CPIOERR_BAD_HEADER;
}