summaryrefslogtreecommitdiffstats
path: root/isys/gzlib
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2001-11-30 01:56:50 +0000
committerErik Troan <ewt@redhat.com>2001-11-30 01:56:50 +0000
commit702e47f52693f7a3b7c3f483e6293b64519ed278 (patch)
tree89b3ad00ff5a49a75643c5e94be6d6f4ba9ddda3 /isys/gzlib
parent9eef14f4a8dbef0a99f6815882fc45fc406e3c89 (diff)
downloadanaconda-702e47f52693f7a3b7c3f483e6293b64519ed278.tar.gz
anaconda-702e47f52693f7a3b7c3f483e6293b64519ed278.tar.xz
anaconda-702e47f52693f7a3b7c3f483e6293b64519ed278.zip
compression works
Diffstat (limited to 'isys/gzlib')
-rw-r--r--isys/gzlib/binding.c4
-rw-r--r--isys/gzlib/deflate.c4
-rw-r--r--isys/gzlib/gzlib.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/isys/gzlib/binding.c b/isys/gzlib/binding.c
index 0f779366d..f4d5bb73c 100644
--- a/isys/gzlib/binding.c
+++ b/isys/gzlib/binding.c
@@ -87,10 +87,10 @@ gzFile gzip_dopen(int fd) {
}
-gzFile gzip_open(const char * file, int flags) {
+gzFile gzip_open(const char * file, int flags, int perms) {
int fd;
- fd = open(file, flags);
+ fd = open(file, flags, perms);
if (fd < 0) return NULL;
return gzip_dopen(fd);
diff --git a/isys/gzlib/deflate.c b/isys/gzlib/deflate.c
index 5a355928f..bd128206b 100644
--- a/isys/gzlib/deflate.c
+++ b/isys/gzlib/deflate.c
@@ -290,7 +290,7 @@ void lm_init (pack_level, flags)
{
register unsigned j;
- if (pack_level < 1 || pack_level > 9) error("bad pack level");
+ if (pack_level < 1 || pack_level > 9) warn("bad pack level");
compr_level = pack_level;
/* Initialize the hash table. */
@@ -495,7 +495,7 @@ local void check_match(start, match, length)
fprintf(stderr,
" start %d, match %d, length %d\n",
start, match, length);
- error("invalid match");
+ warn("invalid match");
}
if (verbose > 1) {
fprintf(stderr,"\\[%d,%d]", start-match, length);
diff --git a/isys/gzlib/gzlib.h b/isys/gzlib/gzlib.h
index 35255a401..8677737f8 100644
--- a/isys/gzlib/gzlib.h
+++ b/isys/gzlib/gzlib.h
@@ -5,7 +5,7 @@ typedef struct gzFile_s * gzFile;
gzFile gunzip_open(const char * file);
gzFile gunzip_dopen(int fd);
-gzFile gzip_open(const char * file, int mode);
+gzFile gzip_open(const char * file, int mode, int perms);
gzFile gzip_dopen(int fd);
int gunzip_read(gzFile str, void * buf, int bytes);
int gzip_write(gzFile str, void * buf, int bytes);