summaryrefslogtreecommitdiff
path: root/lib/kernel/src/os.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kernel/src/os.erl')
-rw-r--r--lib/kernel/src/os.erl6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/kernel/src/os.erl b/lib/kernel/src/os.erl
index 29a26674ba..b1488f1390 100644
--- a/lib/kernel/src/os.erl
+++ b/lib/kernel/src/os.erl
@@ -293,7 +293,11 @@ mk_cmd({win32,Wtype}, Cmd) ->
{Command, [], [], <<>>};
mk_cmd(_,Cmd) ->
%% Have to send command in like this in order to make sh commands like
- %% cd and ulimit available
+ %% cd and ulimit available.
+ %%
+ %% We use an absolute path here because we do not want the path to be
+ %% searched in case a stale NFS handle is somewhere in the path before
+ %% the sh command.
{"/bin/sh -s unix:cmd", [out],
%% We insert a new line after the command, in case the command
%% contains a comment character.