summaryrefslogtreecommitdiffstats
path: root/lib/libarchive/archive_read_extract.c
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-11-05 05:16:40 +0000
committerkientzle <kientzle@FreeBSD.org>2004-11-05 05:16:40 +0000
commita807fa6b3030d7494035bfbf5c67503af1bc49d4 (patch)
tree25b74c1224bc4a71bdc74a28619dde7b7663d366 /lib/libarchive/archive_read_extract.c
parentdfc6a366e7b882f80c120f4c99900e60c89ca279 (diff)
downloadFreeBSD-src-a807fa6b3030d7494035bfbf5c67503af1bc49d4.zip
FreeBSD-src-a807fa6b3030d7494035bfbf5c67503af1bc49d4.tar.gz
Update a comment.
Diffstat (limited to 'lib/libarchive/archive_read_extract.c')
-rw-r--r--lib/libarchive/archive_read_extract.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_read_extract.c b/lib/libarchive/archive_read_extract.c
index b41f95b..6a19dc6 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. */
OpenPOWER on IntegriCloud