Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Nov 2024 17:36:05 GMT
From:      "Sergey A. Osokin" <osa@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 577ae5596071 - main - www/unit-wasm: write permission is required
Message-ID:  <202411231736.4ANHa5we047039@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by osa:

URL: https://cgit.FreeBSD.org/ports/commit/?id=577ae5596071f46febf99877cf20d325e8786b6e

commit 577ae5596071f46febf99877cf20d325e8786b6e
Author:     Sergey A. Osokin <osa@FreeBSD.org>
AuthorDate: 2024-11-23 17:34:28 +0000
Commit:     Sergey A. Osokin <osa@FreeBSD.org>
CommitDate: 2024-11-23 17:35:59 +0000

    www/unit-wasm:  write permission is required
    
    Bump PORTREVISION.
---
 www/unit-wasm/Makefile                            | 2 +-
 www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/www/unit-wasm/Makefile b/www/unit-wasm/Makefile
index fb3890528bc3..f919d9be0dc9 100644
--- a/www/unit-wasm/Makefile
+++ b/www/unit-wasm/Makefile
@@ -1,5 +1,5 @@
 PKGNAMESUFFIX=	-${UNIT_MODNAME}
-PORTREVISION=	2
+PORTREVISION=	3
 
 UNIT_MODNAME=	wasm
 
diff --git a/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c b/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c
index efa08aa8e823..702c2f4fdda5 100644
--- a/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c
+++ b/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c
@@ -6,8 +6,8 @@
      for (dir = ctx->dirs; dir != NULL && *dir != NULL; dir++) {
 -        wasi_config_preopen_dir(wasi_config, *dir, *dir);
 +        wasi_config_preopen_dir(wasi_config, *dir, *dir,
-+                                 WASMTIME_WASI_DIR_PERMS_READ,
-+                                 WASMTIME_WASI_FILE_PERMS_READ);
++                                 WASMTIME_WASI_DIR_PERMS_WRITE,
++                                 WASMTIME_WASI_FILE_PERMS_WRITE);
      }
  
      error = wasmtime_context_set_wasi(rt_ctx->ctx, wasi_config);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202411231736.4ANHa5we047039>