View | Details | Raw Unified | Return to bug 27188
Collapse All | Expand All

(-)rsh/rsh.1 (+3 lines)
Lines 96-101 Link Here
96
(see the
96
(see the
97
.Sx BUGS
97
.Sx BUGS
98
section of this manual page).
98
section of this manual page).
99
.It Fl c
100
Do not shutdown sending socket. This solves problems connecting to
101
some proprietary devices in non-interactive mode.
99
.It Fl x
102
.It Fl x
100
Turn on
103
Turn on
101
.Tn DES
104
.Tn DES
(-)rsh/rsh.c (-7 / +10 lines)
Lines 100-106 Link Here
100
	struct passwd *pw;
100
	struct passwd *pw;
101
	struct servent *sp;
101
	struct servent *sp;
102
	long omask;
102
	long omask;
103
	int argoff, asrsh, ch, dflag, nflag, one, rem;
103
	int argoff, asrsh, ch, dflag, nflag, cflag, one, rem;
104
	pid_t pid = 0;
104
	pid_t pid = 0;
105
	uid_t uid;
105
	uid_t uid;
106
	char *args, *host, *p, *user;
106
	char *args, *host, *p, *user;
Lines 109-115 Link Here
109
	char *k;
109
	char *k;
110
#endif
110
#endif
111
111
112
	argoff = asrsh = dflag = nflag = 0;
112
	argoff = asrsh = dflag = cflag = nflag = 0;
113
	one = 1;
113
	one = 1;
114
	host = user = NULL;
114
	host = user = NULL;
115
115
Lines 131-142 Link Here
131
131
132
#ifdef KERBEROS
132
#ifdef KERBEROS
133
#ifdef CRYPT
133
#ifdef CRYPT
134
#define	OPTIONS	"468KLde:k:l:nt:wx"
134
#define	OPTIONS	"468KLde:k:l:nct:wx"
135
#else
135
#else
136
#define	OPTIONS	"468KLde:k:l:nt:w"
136
#define	OPTIONS	"468KLde:k:l:nct:w"
137
#endif
137
#endif
138
#else
138
#else
139
#define	OPTIONS	"468KLde:l:nt:w"
139
#define	OPTIONS	"468KLde:l:nct:w"
140
#endif
140
#endif
141
	while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != -1)
141
	while ((ch = getopt(argc - argoff, argv + argoff, OPTIONS)) != -1)
142
		switch(ch) {
142
		switch(ch) {
Lines 173-178 Link Here
173
		case 'n':
173
		case 'n':
174
			nflag = 1;
174
			nflag = 1;
175
			break;
175
			break;
176
		case 'c':
177
			cflag = 1;
178
			break;
176
#ifdef KERBEROS
179
#ifdef KERBEROS
177
#ifdef CRYPT
180
#ifdef CRYPT
178
		case 'x':
181
		case 'x':
Lines 315-321 Link Here
315
		if (pid < 0)
318
		if (pid < 0)
316
			err(1, "fork");
319
			err(1, "fork");
317
	}
320
	}
318
        else
321
        else if (!cflag)
319
		(void)shutdown(rem, 1);
322
		(void)shutdown(rem, 1);
320
323
321
#ifdef KERBEROS
324
#ifdef KERBEROS
Lines 491-497 Link Here
491
{
494
{
492
495
493
	(void)fprintf(stderr,
496
	(void)fprintf(stderr,
494
	    "usage: rsh [-46] [-ndK%s]%s[-l login] [-t timeout] host [command]\n",
497
	    "usage: rsh [-46] [-ncdK%s]%s[-l login] [-t timeout] host [command]\n",
495
#ifdef KERBEROS
498
#ifdef KERBEROS
496
#ifdef CRYPT
499
#ifdef CRYPT
497
	    "x", " [-k realm] ");
500
	    "x", " [-k realm] ");

Return to bug 27188