From da73788f4ae4910719e0bf3dd4148a8e8e003f62ca3f141215db1ff72c08f049 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 11 Jun 2021 11:27:52 +0000 Subject: [PATCH] Add fallback for update-alterntatives symlinks OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-common?expand=0&rev=46 --- node.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/node.c b/node.c index 74771a8..cceadb3 100644 --- a/node.c +++ b/node.c @@ -70,7 +70,10 @@ int main(int argc, char *argv[]) // if we want default version and not using update-alternatives if (version == default_version) { - return libalts_exec_default(argv); + // should not return, and if it does, it probably means + // we should fall back to using node-default fallback. + libalts_exec_default(argv); + fputs("Falling back to using -default symlink.\n", stderr); } #endif