]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
file: Perform magic check for all files
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 14 Mar 2023 18:57:01 +0000 (18:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 14 Mar 2023 18:57:01 +0000 (18:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c

index d4e370e618535b2284d94f982c6010e5c7403014..3701aecb0a34421d230b617fd760930f0d38d64f 100644 (file)
@@ -1187,10 +1187,6 @@ static const struct mimetype {
 static int pakfire_file_classify_magic(struct pakfire_file* file) {
        int r;
 
-       // Don't run this if the file has already been classified
-       if (file->class & ~PAKFIRE_FILE_REGULAR)
-               return 0;
-
        // Detect the MIME type
        r = pakfire_file_detect_mimetype(file);
        if (r)