From: Michael Tremer Date: Wed, 31 Aug 2022 15:50:31 +0000 (+0000) Subject: archive: Open for reading only X-Git-Tag: 0.9.28~347 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dbcac36d2b60d8187c140eb230753ae713ca6630;p=pakfire.git archive: Open for reading only Before, when we could sign archives, there was the need to write to the file handle as well... Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/archive.c b/src/libpakfire/archive.c index a8ccfc5f9..103017843 100644 --- a/src/libpakfire/archive.c +++ b/src/libpakfire/archive.c @@ -577,7 +577,7 @@ static int pakfire_archive_try_open(struct pakfire_archive* archive, const char* pakfire_string_set(archive->path, path); // Open the file (and keep the file descriptor open) - archive->f = fopen(archive->path, "r+"); + archive->f = fopen(archive->path, "r"); if (!archive->f) return 1;