<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">No comment on that?<br>
      Do you want to apply this patch to make my work available to all
      buildroot users?<br>
      <br>
      Andreas<br>
      <br>
      On 11/08/2013 03:32 PM, <a class="moz-txt-link-abbreviated" href="mailto:universeII@gmx.de">universeII@gmx.de</a> wrote:<br>
    </div>
    <blockquote
cite="mid:trinity-4957780b-fc6b-4034-a1cf-56fff1642edd-1383921125839@3capp-gmx-bs05"
      type="cite">
      <div style="font-family: Verdana;font-size: 12.0px;">
        <div>All,</div>
        <div>when trying to setup my target system to start rshd I
          figured out some problems. Below you can find a description
          and and patch to fix the problems. Result is a working rshd
          and rlogind.</div>
        <div> </div>
        <div>Please no comments like "use ssh, that's more secure".
          Usage of rsh is mandatory in my setup as the existing and
          qualified test system uses rsh to perform software tests on
          the target. Changing the test system is no option (due to
          qualification effort).</div>
        <div> </div>
        <div>I found out that build of rshd and rlogind is commented out
          in Config.in of package rsh-redone. Re-activating them lead to
          compile errors of the rsh-redone package (when linking with
          pam). After a while I found the root cause. The make targets
          are wrong: rshd and rlogind must be replaces by in.rshd and
          in.rlogind. With these changes rshd and rlogind are compiled
          and are running fine on my target. Just activate them in
          inetd.conf and adjust some PAM settings. That's all.</div>
        <div> </div>
        <div>Please let me know, if you need more details or if the
          patch is in a wrong format (this is my first patch
          contribution).</div>
        <div> </div>
        <div>Regards,</div>
        <div>Andreas</div>
        <div> </div>
        <div>P.S.: I did not succeed in re-activating rcp as there is an
          compile error in the rsh-redone sources.</div>
        <div> </div>
        <div>
          <div>diff -purN rsh-redone_org/Config.in rsh-redone/Config.in<br>
            --- rsh-redone_org/Config.in    2013-09-17
            13:42:07.000000000 +0200<br>
            +++ rsh-redone/Config.in        2013-10-24
            08:22:47.324184620 +0200<br>
            @@ -17,15 +17,15 @@ config BR2_PACKAGE_RSH_REDONE_RLOGIN<br>
                    depends on BR2_PACKAGE_RSH_REDONE<br>
             <br>
             # requires PAM<br>
            -#config BR2_PACKAGE_RSH_REDONE_RLOGIND<br>
            -#      bool "rlogind"<br>
            -#      depends on BR2_PACKAGE_RSH_REDONE<br>
            +config BR2_PACKAGE_RSH_REDONE_RLOGIND<br>
            +       bool "rlogind"<br>
            +       depends on BR2_PACKAGE_RSH_REDONE<br>
             <br>
             config BR2_PACKAGE_RSH_REDONE_RSH<br>
                    bool "rsh"<br>
                    depends on BR2_PACKAGE_RSH_REDONE<br>
             <br>
             # requires PAM<br>
            -#config BR2_PACKAGE_RSH_REDONE_RSHD<br>
            -#      bool "rshd"<br>
            -#      depends on BR2_PACKAGE_RSH_REDONE<br>
            +config BR2_PACKAGE_RSH_REDONE_RSHD<br>
            +       bool "rshd"<br>
            +       depends on BR2_PACKAGE_RSH_REDONE<br>
            diff -purN rsh-redone_org/rsh-redone.mk
            rsh-redone/rsh-redone.mk<br>
            --- rsh-redone_org/rsh-redone.mk        2013-09-17
            13:42:07.000000000 +0200<br>
            +++ rsh-redone/rsh-redone.mk    2013-10-24
            08:23:00.643065545 +0200<br>
            @@ -13,8 +13,8 @@ rsh-redone-bin-$(BR2_PACKAGE_RSH_REDONE_<br>
             rsh-redone-bin-$(BR2_PACKAGE_RSH_REDONE_RLOGIN) += rlogin<br>
             rsh-redone-bin-$(BR2_PACKAGE_RSH_REDONE_RSH) += rsh<br>
             rsh-redone-sbin-y =<br>
            -rsh-redone-sbin-$(BR2_PACKAGE_RSH_REDONE_RLOGIND) +=
            rlogind<br>
            -rsh-redone-sbin-$(BR2_PACKAGE_RSH_REDONE_RSHD) += rshd<br>
            +rsh-redone-sbin-$(BR2_PACKAGE_RSH_REDONE_RLOGIND) +=
            in.rlogind<br>
            +rsh-redone-sbin-$(BR2_PACKAGE_RSH_REDONE_RSHD) += in.rshd<br>
             <br>
             define RSH_REDONE_BUILD_CMDS<br>
                    $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
            BIN="$(rsh-redone-bin-y)" SBIN="$(rsh-redone-sbin-y)"</div>
          <div> </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
buildroot mailing list
<a class="moz-txt-link-abbreviated" href="mailto:buildroot@busybox.net">buildroot@busybox.net</a>
<a class="moz-txt-link-freetext" href="http://lists.busybox.net/mailman/listinfo/buildroot">http://lists.busybox.net/mailman/listinfo/buildroot</a></pre>
    </blockquote>
    <br>
  </body>
</html>