Skip to content

Commit 0963479

Browse files
dtzWilledolstra
authored andcommitted
archive.cc: ignore more posix_fallocate "not supported" error codes
Fixes w/musl.
1 parent ad6dbec commit 0963479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libutil/archive.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ struct RestoreSink : ParseSink
331331
filesystem doesn't support preallocation (e.g. on
332332
OpenSolaris). Since preallocation is just an
333333
optimisation, ignore it. */
334-
if (errno && errno != EINVAL)
334+
if (errno && errno != EINVAL && errno != EOPNOTSUPP && errno != ENOSYS)
335335
throw SysError(format("preallocating file of %1% bytes") % len);
336336
}
337337
#endif

0 commit comments

Comments
 (0)