]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Fix build failure on linux.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 26 Feb 2012 12:05:32 +0000 (21:05 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 26 Feb 2012 12:05:32 +0000 (21:05 +0900)
libarchive/archive_read_disk_posix.c

index e76ef87b541f025776a6467fbc23672b2ef8d29d..698600e9b1518b09826fc4c07be81218259f80ca 100644 (file)
@@ -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,