File 0358-Document-the-restrictions-on-the-rsh-command.patch of Package erlang

From e11502856586ba5c6d1468817e43a0bfcf6c7569 Mon Sep 17 00:00:00 2001
From: Richard Carlsson <richardc@klarna.com>
Date: Tue, 17 Apr 2018 21:34:08 +0200
Subject: [PATCH 2/3] Document the restrictions on the -rsh command

---
 lib/stdlib/doc/src/slave.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/stdlib/doc/src/slave.xml b/lib/stdlib/doc/src/slave.xml
index 88902b364a..de9ec8669b 100644
--- a/lib/stdlib/doc/src/slave.xml
+++ b/lib/stdlib/doc/src/slave.xml
@@ -48,6 +48,12 @@
       program.</p>
     <p>An alternative to the <c>ssh</c> program can be specified on
       the command line to <c>erl</c> as follows: <c>-rsh Program</c>.</p>
+    <p>Note that the command specified with the <c>-rsh</c> flag is
+      treated as a file name which may contain spaces. It is thus not
+      possible to include any command line options. The remote node will
+      be launched as <c>"$RSH" "$REMOTE_HOSTNAME" erl -detached -noinput
+      ...</c>, so the
+      <c>erl</c> command must be found in the path on the remote host.</p>
     <p>The slave node should use the same file system at the master. At
       least, Erlang/OTP should be installed in the same place on both
       computers and the same version of Erlang should be used.</p>
-- 
2.16.4

openSUSE Build Service is sponsored by