Ignore file flag bits that we don't support. In particular, this
corrects a segfault seen when archiving files from NTFS (which sets bits in st_flags that are not documented in <sys/stat.h>.) Thanks to: Doug Rabson
This commit is contained in:
parent
5ff798ca5f
commit
b77cfdd61e
@ -1366,6 +1366,8 @@ ae_fflagstostr(unsigned long bitset, unsigned long bitclear)
|
||||
bits &= ~(flag->set | flag->clear);
|
||||
}
|
||||
|
||||
if (length == 0)
|
||||
return (NULL);
|
||||
string = malloc(length);
|
||||
if (string == NULL)
|
||||
return (NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user