summaryrefslogtreecommitdiff
path: root/security/openssh/files/patch-ak
blob: d139441788fda48d9e1cbd66dadda71e9039624d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- ssh.c.orig	Tue May 30 23:36:40 2000
+++ ssh.c	Tue Jun 20 16:15:29 2000
@@ -156,6 +156,9 @@
 	log("Using rsh.  WARNING: Connection will not be encrypted.");
 	/* Build argument list for rsh. */
 	i = 0;
+#ifndef	_PATH_RSH
+#define	_PATH_RSH	"/usr/bin/rsh"
+#endif
 	args[i++] = _PATH_RSH;
 	/* host may have to come after user on some systems */
 	args[i++] = host;
@@ -482,6 +485,11 @@
 	pwcopy.pw_gid = pw->pw_gid;
 	pwcopy.pw_dir = xstrdup(pw->pw_dir);
 	pwcopy.pw_shell = xstrdup(pw->pw_shell);
+#ifdef __FreeBSD__
+	pwcopy.pw_class = xstrdup(pw->pw_class);
+ 	pwcopy.pw_expire = pw->pw_expire;
+ 	pwcopy.pw_change = pw->pw_change;
+#endif /* __FreeBSD__ */
 	pw = &pwcopy;
 
 	/* Initialize "log" output.  Since we are the client all output