archive.cc: ignore more posix_fallocate "not supported" error codes

Fixes w/musl.
This commit is contained in:
Will Dietz 2018-04-04 13:48:50 -05:00 committed by Eelco Dolstra
parent ad6dbecc1d
commit 0963479741
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ struct RestoreSink : ParseSink
filesystem doesn't support preallocation (e.g. on
OpenSolaris). Since preallocation is just an
optimisation, ignore it. */
if (errno && errno != EINVAL)
if (errno && errno != EINVAL && errno != EOPNOTSUPP && errno != ENOSYS)
throw SysError(format("preallocating file of %1% bytes") % len);
}
#endif