]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix flags on Linux.
authorTim Kientzle <kientzle@acm.org>
Thu, 23 Aug 2012 02:23:48 +0000 (19:23 -0700)
committerTim Kientzle <kientzle@acm.org>
Thu, 23 Aug 2012 02:23:48 +0000 (19:23 -0700)
The ioctl we're using here expects a pointer to an int argument.

libarchive/archive_read_disk_entry_from_file.c

index 9795f920139445d206ba24ca3cc4f37c50bddb65..150897aebc26b0f5ec65880c4a70f87236afdf59 100644 (file)
@@ -198,7 +198,7 @@ archive_read_disk_entry_from_file(struct archive *_a,
                                fd = open(path, O_RDONLY | O_NONBLOCK);
                }
                if (fd >= 0) {
-                       unsigned long stflags;
+                       int stflags;
                        r = ioctl(fd, EXT2_IOC_GETFLAGS, &stflags);
                        if (r == 0 && stflags != 0)
                                archive_entry_set_fflags(entry, stflags, 0);