FreeBSD Bugzilla – Attachment 14463 Details for
Bug 27188
fix of rsh non-interactive mode behaviour
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.75 KB, created by
midom
on 2001-05-07 20:40:11 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
midom
Created:
2001-05-07 20:40:11 UTC
Size:
1.75 KB
patch
obsolete
>diff -ur rsh.old/rsh.1 rsh/rsh.1 >--- rsh.old/rsh.1 Mon May 7 21:21:08 2001 >+++ rsh/rsh.1 Mon May 7 21:30:52 2001 >@@ -96,6 +96,9 @@ > (see the > .Sx BUGS > section of this manual page). >+.It Fl c >+Do not shutdown sending socket. This solves problems connecting to >+some proprietary devices in non-interactive mode. > .It Fl x > Turn on > .Tn DES >diff -ur rsh.old/rsh.c rsh/rsh.c >--- rsh.old/rsh.c Mon May 7 21:21:08 2001 >+++ rsh/rsh.c Mon May 7 21:28:09 2001 >@@ -100,7 +100,7 @@ > struct passwd *pw; > struct servent *sp; > long omask; >- int argoff, asrsh, ch, dflag, nflag, one, rem; >+ int argoff, asrsh, ch, dflag, nflag, cflag, one, rem; > pid_t pid = 0; > uid_t uid; > char *args, *host, *p, *user; >@@ -109,7 +109,7 @@ > char *k; > #endif > >- argoff = asrsh = dflag = nflag = 0; >+ argoff = asrsh = dflag = cflag = nflag = 0; > one = 1; > host = user = NULL; > >@@ -131,12 +131,12 @@ > > #ifdef KERBEROS > #ifdef CRYPT >-#define OPTIONS "468KLde:k:l:nt:wx" >+#define OPTIONS "468KLde:k:l:nct:wx" > #else >-#define OPTIONS "468KLde:k:l:nt:w" >+#define OPTIONS "468KLde:k:l:nct:w" > #endif > #else >-#define OPTIONS "468KLde:l:nt:w" >+#define OPTIONS "468KLde:l:nct:w" > #endif > while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != -1) > switch(ch) { >@@ -173,6 +173,9 @@ > case 'n': > nflag = 1; > break; >+ case 'c': >+ cflag = 1; >+ break; > #ifdef KERBEROS > #ifdef CRYPT > case 'x': >@@ -315,7 +318,7 @@ > if (pid < 0) > err(1, "fork"); > } >- else >+ else if (!cflag) > (void)shutdown(rem, 1); > > #ifdef KERBEROS >@@ -491,7 +494,7 @@ > { > > (void)fprintf(stderr, >- "usage: rsh [-46] [-ndK%s]%s[-l login] [-t timeout] host [command]\n", >+ "usage: rsh [-46] [-ncdK%s]%s[-l login] [-t timeout] host [command]\n", > #ifdef KERBEROS > #ifdef CRYPT > "x", " [-k realm] ");
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27188
: 14463