bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-inetutils] command-line processing for rsh 1.4.2 (small getopt fix)


From: Todd R. Eigenschink
Subject: [bug-inetutils] command-line processing for rsh 1.4.2 (small getopt fix)
Date: Mon, 14 Jun 2004 10:43:24 -0500

Commands like "rsh sol tail -f /var/log/mail" wouldn't work, as rsh
was attempting to interpret the "-f".  Adding a "+" to the getopt
options string (taken from Linux netkit-rsh 0.17) takes are of that.



--- rsh.c       2002-06-25 22:15:06.000000000 -0500
+++ rsh.c.new   2004-06-14 10:41:20.050176728 -0500
@@ -97,12 +97,12 @@
 
 #ifdef KERBEROS
 #ifdef ENCRYPTION
-#define        OPTIONS "8Kdek:l:nxVh"
+#define        OPTIONS "+8Kdek:l:nxVh"
 #else
-#define        OPTIONS "8Kdek:l:nVh"
+#define        OPTIONS "+8Kdek:l:nVh"
 #endif
 #else
-#define        OPTIONS "8KLdel:nVh"
+#define        OPTIONS "+8KLdel:nVh"
 #endif
 static const char *short_options = OPTIONS;
 static struct option long_options[] =





reply via email to

[Prev in Thread] Current Thread [Next in Thread]