Tool name: rlogin
rlogin/rlogin.c:
* Changed 'optarg' to 'arg'. (Fixes empty realm bug)
* Removed macro for getopt's short options (old)
Index: rlogin/rlogin.c
===================================================================
RCS file: /sources/inetutils/inetutils/rlogin/rlogin.c,v
retrieving revision 1.34
diff -u -p -r1.34 rlogin.c
--- rlogin/rlogin.c 11 Jun 2008 13:12:46 -0000 1.34
+++ rlogin/rlogin.c 22 Aug 2008 13:26:05 -0000
@@ -206,12 +206,6 @@ void warning (const char *, ...);
extern sig_t setsig (int, sig_t);
-#if defined(KERBEROS) || defined(SHISHI)
-# define OPTIONS "8EKde:k:l:xhV"
-#else
-# define OPTIONS "8EKde:l:hV"
-#endif
-
ARGP_PROGRAM_DATA ("rlogin", "2008", "FIXME unknown");
const char args_doc[] = "HOST";
@@ -286,7 +280,7 @@ parse_opt (int key, char *arg, struct ar
break;
case 'k':
- strncpy (dest_realm_buf, optarg, sizeof (dest_realm_buf));
+ strncpy (dest_realm_buf, arg, sizeof (dest_realm_buf));
/* Make sure it's null termintated. */
dest_realm_buf[sizeof (dest_realm_buf) - 1] = '\0';
dest_realm = dest_realm_buf;
_______________________________________________
bug-inetutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-inetutils