Permalink
Browse files

Fix flags on Linux.

The ioctl we're using here expects a pointer to an int argument.
  • Loading branch information...
1 parent 17a112f commit 7e3ccd9b17e02d3f26825cbd6207e8b2d12858aa @kientzle kientzle committed Aug 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libarchive/archive_read_disk_entry_from_file.c
View
2 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);

0 comments on commit 7e3ccd9

Please sign in to comment.