diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2004-11-05 05:16:40 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2004-11-05 05:16:40 +0000 |
| commit | 3702bc7eb3b5621ae5fa6e92740f98b5a7ae236d (patch) | |
| tree | 25b74c1224bc4a71bdc74a28619dde7b7663d366 | |
| parent | 240d5a9b1ce76f04a7c7e15791557763b2f1fd7e (diff) | |
Notes
| -rw-r--r-- | lib/libarchive/archive_read_extract.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_read_extract.c b/lib/libarchive/archive_read_extract.c index b41f95bf8405..6a19dc640352 100644 --- a/lib/libarchive/archive_read_extract.c +++ b/lib/libarchive/archive_read_extract.c @@ -488,6 +488,7 @@ extract_dir(struct archive *a, struct archive_entry *entry, int flags) if (extract->pst != NULL) { extract->pst = &extract->st; + /* If dir already exists, don't reset permissions. */ if (S_ISDIR(extract->pst->st_mode)) return (ARCHIVE_OK); /* It exists but isn't a dir. */ |
