Correct spelling of == so that file flags are correctly restored.

Credit to Juergen Lock.
This commit is contained in:
Tim Kientzle 2004-04-23 16:27:37 +00:00
parent 5efdd80a6a
commit 9214908dca

View File

@ -803,7 +803,7 @@ set_fflags(struct archive *a, struct archive_entry *entry)
#ifdef HAVE_CHFLAGS
fflags_p = fflags;
if (strtofflags(&fflags_p, &set, &clear) != 0 &&
if (strtofflags(&fflags_p, &set, &clear) == 0 &&
stat(name, &st) == 0) {
st.st_flags &= ~clear;
st.st_flags |= set;