mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Correct spelling of == so that file flags are correctly restored.
Credit to Juergen Lock.
This commit is contained in:
parent
5efdd80a6a
commit
9214908dca
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue