summaryrefslogtreecommitdiffstats
path: root/collage/commands.c
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-01-01 15:50:12 +0000
committerErik Troan <ewt@redhat.com>2000-01-01 15:50:12 +0000
commit8d148138f55573706cd39807be52180ca173d41a (patch)
treee3efd1401648b7ef9b9523d1ed8c38ffdf9e0058 /collage/commands.c
parentfebaa0758c36f365c3dfe61faf48dbd1ee5d0e5c (diff)
downloadanaconda-8d148138f55573706cd39807be52180ca173d41a.tar.gz
anaconda-8d148138f55573706cd39807be52180ca173d41a.tar.xz
anaconda-8d148138f55573706cd39807be52180ca173d41a.zip
removed librpm dependencies
Diffstat (limited to 'collage/commands.c')
-rw-r--r--collage/commands.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/collage/commands.c b/collage/commands.c
index d57df39dd..02a142adc 100644
--- a/collage/commands.c
+++ b/collage/commands.c
@@ -183,6 +183,7 @@ int mknodCommand(int argc, char ** argv) {
if (*end == '/') end++;
if (devMakeInode(end, path)) {
+ printf("failed to make inode for device %s\n", end);
return 1;
}
@@ -308,19 +309,17 @@ int chmodCommand(int argc, char ** argv) {
return 0;
}
-#define CPIOERR_CHECK_ERRNO 0x00008000
-
int uncpioCommand(int argc, char ** argv) {
int rc;
const char * fail;
- FD_t cfd;
+ gzFile cfd;
if (argc != 1) {
fprintf(stderr, "uncpio reads from stdin");
return 1;
}
- cfd = Fdopen(fdDup(0), "r.gzdio");
+ cfd = gzdopen(0, "r");
rc = cpioInstallArchive(cfd, NULL, 0, NULL, NULL, &fail);