We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4ddaae commit 9129bc4Copy full SHA for 9129bc4
lib/internal/bootstrap_node.js
@@ -71,6 +71,13 @@
71
// URL::ToObject() method is used.
72
NativeModule.require('internal/url');
73
74
+ // On OpenBSD process.execPath will be relative unless we
75
+ // get the full path before process.execPath is used.
76
+ if (process.platform === 'openbsd') {
77
+ const { realpathSync } = NativeModule.require('fs');
78
+ process.execPath = realpathSync.native(process.execPath);
79
+ }
80
+
81
Object.defineProperty(process, 'argv0', {
82
enumerable: true,
83
configurable: false,
0 commit comments