diff options
author | Will Dietz <w@wdtz.org> | 2018-04-04T18·48-0500 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-03-01T02·31+0800 |
commit | 0963479741d476393260b831a242c74c918ed6e6 (patch) | |
tree | 3fae685788d3df3e209c5ee25aa41b2262058e83 /src | |
parent | ad6dbecc1d3fd756e794fcf5876cc3482ac70e94 (diff) |
archive.cc: ignore more posix_fallocate "not supported" error codes
Fixes w/musl.
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/archive.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/archive.cc b/src/libutil/archive.cc index bb68e82886d0..3aa120270970 100644 --- a/src/libutil/archive.cc +++ b/src/libutil/archive.cc @@ -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 |