]> git.ipfire.org Git - pakfire.git/commitdiff
compress: Return ENOTSUP when we could not find a matching decompressor
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Mar 2021 19:09:30 +0000 (19:09 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 18 Mar 2021 19:09:30 +0000 (19:09 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/compress.c

index 74222001def97e1c1f76048f32faa2c8368a5330..220bf5150acbaee8aabf73960051dd7e63053faf 100644 (file)
@@ -101,6 +101,7 @@ FILE* pakfire_xfopen(FILE* f, const char* mode) {
        }
 
        // Nothing seems to match
+       errno = ENOTSUP;
        return f;
 }