We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 057c80b commit 77a405bCopy full SHA for 77a405b
lib/internal/bootstrap_node.js
@@ -66,6 +66,13 @@
66
// URL::ToObject() method is used.
67
NativeModule.require('internal/url');
68
69
+ // On OpenBSD process.execPath will be relative unless we
70
+ // get the full path before process.execPath is used.
71
+ if (process.platform === 'openbsd') {
72
+ const { realpathSync } = NativeModule.require('fs');
73
+ process.execPath = realpathSync.native(process.execPath);
74
+ }
75
+
76
Object.defineProperty(process, 'argv0', {
77
enumerable: true,
78
configurable: false,
0 commit comments