From: Michihiro NAKAJIMA Date: Sun, 26 Feb 2012 12:05:32 +0000 (+0900) Subject: Fix build failure on linux. X-Git-Tag: v3.0.4~2^2~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78f77493919dbc653d61a3106b89b73a0111936d;p=thirdparty%2Flibarchive.git Fix build failure on linux. --- diff --git a/libarchive/archive_read_disk_posix.c b/libarchive/archive_read_disk_posix.c index e76ef87b5..698600e9b 100644 --- a/libarchive/archive_read_disk_posix.c +++ b/libarchive/archive_read_disk_posix.c @@ -986,7 +986,7 @@ next_entry(struct archive_read_disk *a, struct tree *t, if (S_ISREG(st->st_mode) || S_ISDIR(st->st_mode)) { unsigned long stflags; - t->entry_fd = fd = open_on_current_dir(t, + t->entry_fd = open_on_current_dir(t, tree_current_access_path(t), O_RDONLY | O_NONBLOCK); if (t->entry_fd >= 0) { r = ioctl(t->entry_fd, EXT2_IOC_GETFLAGS,