From 7e3ccd9b17e02d3f26825cbd6207e8b2d12858aa Mon Sep 17 00:00:00 2001 From: Tim Kientzle Date: Wed, 22 Aug 2012 19:23:48 -0700 Subject: [PATCH] Fix flags on Linux. The ioctl we're using here expects a pointer to an int argument. --- libarchive/archive_read_disk_entry_from_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/archive_read_disk_entry_from_file.c b/libarchive/archive_read_disk_entry_from_file.c index 9795f9201..150897aeb 100644 --- a/libarchive/archive_read_disk_entry_from_file.c +++ b/libarchive/archive_read_disk_entry_from_file.c @@ -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); -- 2.47.3