summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2004-07-04 18:28:56 +0000
committerkientzle <kientzle@FreeBSD.org>2004-07-04 18:28:56 +0000
commit423979003aba4f7f09234e090a743183e3957b0f (patch)
tree590e77688b72968625dd5136410cbdeb75661de1 /lib
parent7bcd416f5075b8011372c6930271b1a837f52d23 (diff)
downloadFreeBSD-src-423979003aba4f7f09234e090a743183e3957b0f.zip
FreeBSD-src-423979003aba4f7f09234e090a743183e3957b0f.tar.gz
Yet another pointy hat: When restoring file flags, it's okay to use the
shared stat buffer, but don't try to access it through an uninitialized pointer.
Diffstat (limited to 'lib')
-rw-r--r--lib/libarchive/archive_read_extract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_read_extract.c b/lib/libarchive/archive_read_extract.c
index 6726f1b..6dd23d7 100644
--- a/lib/libarchive/archive_read_extract.c
+++ b/lib/libarchive/archive_read_extract.c
@@ -946,7 +946,7 @@ set_fflags(struct archive *a, const char *name, mode_t mode,
if (stat(name, &extract->st) == 0) {
extract->st.st_flags &= ~clear;
extract->st.st_flags |= set;
- if (chflags(name, extract->pst->st_flags) != 0) {
+ if (chflags(name, extract->st.st_flags) != 0) {
archive_set_error(a, errno,
"Failed to set file flags");
ret = ARCHIVE_WARN;
OpenPOWER on IntegriCloud