summaryrefslogtreecommitdiffstats
path: root/isys/uncpio.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-04 18:23:55 +0000
committerErik Troan <ewt@redhat.com>2000-08-04 18:23:55 +0000
commitfb682361257fbb6516e42061cd348ed59b9109cc (patch)
treeab91ef00aeebf5578c6184fe54b47bfbf21ed431 /isys/uncpio.c
parenta6e2edfd10c15228ab8440384f4260d79c93412c (diff)
downloadanaconda-fb682361257fbb6516e42061cd348ed59b9109cc.tar.gz
anaconda-fb682361257fbb6516e42061cd348ed59b9109cc.tar.xz
anaconda-fb682361257fbb6516e42061cd348ed59b9109cc.zip
fixed error messages
Diffstat (limited to 'isys/uncpio.c')
-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;
}