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:
Tim Kientzle 2004-06-19 04:19:27 +00:00
parent 5ff798ca5f
commit b77cfdd61e

View File

@ -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);