2000-05-13 19:25:57 +00:00
|
|
|
--- ssh.c.orig Mon May 8 13:12:15 2000
|
2000-05-20 05:09:04 +00:00
|
|
|
+++ ssh.c Sat May 20 01:02:44 2000
|
2000-05-13 19:25:57 +00:00
|
|
|
@@ -154,6 +154,9 @@
|
1999-11-24 03:36:23 +00:00
|
|
|
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"
|
1999-11-13 23:37:58 +00:00
|
|
|
+#endif
|
1999-11-24 03:36:23 +00:00
|
|
|
args[i++] = _PATH_RSH;
|
|
|
|
/* host may have to come after user on some systems */
|
|
|
|
args[i++] = host;
|
2000-05-20 05:09:04 +00:00
|
|
|
@@ -422,7 +425,7 @@
|
|
|
|
if (!host)
|
|
|
|
usage();
|
|
|
|
|
|
|
|
- OpenSSL_add_all_algorithms();
|
|
|
|
+ SSLeay_add_all_algorithms();
|
|
|
|
|
|
|
|
/* Initialize the command to execute on remote host. */
|
|
|
|
buffer_init(&command);
|
2000-05-13 19:25:57 +00:00
|
|
|
@@ -477,6 +480,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
|