You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by va...@apache.org on 2024/09/14 11:49:14 UTC
(couchdb) branch quote-quickjs-path created (now 9255bca66)
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a change to branch quote-quickjs-path
in repository https://gitbox.apache.org/repos/asf/couchdb.git
at 9255bca66 Quote QuickJS path
This branch includes the following new commits:
new 9255bca66 Quote QuickJS path
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(couchdb) 01/01: Quote QuickJS path
Posted by va...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
vatamane pushed a commit to branch quote-quickjs-path
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 9255bca66f5acf343a7ba4366b4d7794326a24ad
Author: Nick Vatamaniuc <va...@apache.org>
AuthorDate: Sat Sep 14 07:42:36 2024 -0400
Quote QuickJS path
We used to quote the spawnkiller path like this to handle spaces in paths:
```
"\"" ++ filename:join(PrivDir, "couchspawnkillable") ++ "\""
```
So we stick with the same pattern here as well for QuickJS path.
---
src/couch_quickjs/src/couch_quickjs.erl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/couch_quickjs/src/couch_quickjs.erl b/src/couch_quickjs/src/couch_quickjs.erl
index 94307f667..8c7a22570 100644
--- a/src/couch_quickjs/src/couch_quickjs.erl
+++ b/src/couch_quickjs/src/couch_quickjs.erl
@@ -26,12 +26,12 @@
mainjs_cmd() ->
Path = filename:join([priv_dir(), "couchjs_mainjs" ++ ext()]),
check_path(Path),
- apply_config(Path).
+ apply_config("\"" ++ Path ++ "\"").
coffee_cmd() ->
Path = filename:join([priv_dir(), "couchjs_coffee" ++ ext()]),
check_path(Path),
- apply_config(Path).
+ apply_config("\"" ++ Path ++ "\"").
priv_dir() ->
case code:priv_dir(couch_quickjs) of