freebsd-ports/picobsd/ssh-picobsd/files/patch-yc
Luigi Rizzo 95afb17482 If the program is called as ssh1, invoke ssh_main().
This is necessary for scp to work, as scp execs ssh1.
2001-09-30 17:33:59 +00:00

11 lines
333 B
Text

--- sshd.c.old Sun Sep 30 12:33:14 2001
+++ sshd.c Sun Sep 30 12:26:17 2001
@@ -795,6 +795,8 @@
return ssh_main(ac, av);
if (!strcmp( av[0] + l - 3, "ssh"))
return ssh_main(ac, av);
+ if (!strcmp( av[0] + l - 4, "ssh1"))
+ return ssh_main(ac, av);
if (!strcmp( av[0] + l - 3, "scp"))
return scp_main(ac, av);
}