diff --git a/srcpkgs/openbsd-file/patches/musl.patch b/srcpkgs/openbsd-file/patches/musl.patch index 8b485a3f600..430b8891610 100644 --- a/srcpkgs/openbsd-file/patches/musl.patch +++ b/srcpkgs/openbsd-file/patches/musl.patch @@ -1,5 +1,5 @@ ---- file.c.orig 2020-01-30 15:16:15.402746181 +0100 -+++ file.c 2020-01-30 15:16:29.514898212 +0100 +--- file.c ++++ file.c @@ -19,6 +19,7 @@ #include #include @@ -8,3 +8,15 @@ #include #include +--- seccomp-sandbox.c ++++ seccomp-sandbox.c +@@ -109,6 +109,9 @@ static const struct sock_filter filt_insns[] = { + #ifdef __NR_write + SC_ALLOW(__NR_write), + #endif ++#ifdef __NR_writev ++ SC_ALLOW(__NR_writev), ++#endif + + /* Default deny. */ + BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), diff --git a/srcpkgs/openbsd-file/template b/srcpkgs/openbsd-file/template index 13532c02fe0..75a446b759f 100644 --- a/srcpkgs/openbsd-file/template +++ b/srcpkgs/openbsd-file/template @@ -1,7 +1,7 @@ # Template file for 'openbsd-file' pkgname=openbsd-file version=6.2 -revision=1 +revision=2 wrksrc="file-${version}" build_style=gnu-configure configure_args="--program-prefix=openbsd-" @@ -22,5 +22,6 @@ pre_configure() { autoreconf -fi } post_install() { + vinstall magic 444 /etc vlicense LICENSE }