]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove dead code.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sat, 25 Feb 2012 09:33:48 +0000 (18:33 +0900)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Sun, 26 Feb 2012 07:01:30 +0000 (16:01 +0900)
libarchive/archive_read_disk_entry_from_file.c

index d9ee54152586674e32e6b189dd11b234b2cf4233..8fcd0abf9d3a3593de8fd18a43be29f9e41c1a6b 100644 (file)
@@ -1005,13 +1005,6 @@ setup_sparse(struct archive_read_disk *a,
        } else {
                const char *path;
 
-               if (a->tree != NULL) {
-                       if (a->tree_enter_working_dir(a->tree) != 0) {
-                               archive_set_error(&a->archive, errno,
-                                   "Couldn't change dir");
-                               return (ARCHIVE_FAILED);
-                       }
-               }
                path = archive_entry_sourcepath(entry);
                if (path == NULL)
                        path = archive_entry_pathname(entry);