Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > a9fc702511a17c8afb9a3cc4d52ec7b4 > files > 9

krb5-appl-1.0.3-2.mga3.src.rpm

We ship netkit rsh, which isn't smart enough to deal with the oddball case
where argv[0] is an option flag.

--- krb5-1.3/src/appl/bsd/krsh.c
+++ krb5-1.3/src/appl/bsd/krsh.c
@@ -616,8 +616,10 @@
     else
       host = argv[0];
     
+#ifdef BERKELEY_RSH
     if (!strcmp(host, "rsh"))
       argv++;
+#endif
     
     fprintf(stderr,"trying normal rsh (%s)\n",
 	    UCB_RSH);