summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2000-08-19 02:07:23 +0000
committerderaadt <deraadt@openbsd.org>2000-08-19 02:07:23 +0000
commit3aed778d2ae156c493770a4d48b498719f540c2d (patch)
tree875e175ff44a525d6721ddb0747c684d32fe89ad
parentFix a typo that broke the year portion of the date in the footer (diff)
downloadwireguard-openbsd-3aed778d2ae156c493770a4d48b498719f540c2d.tar.xz
wireguard-openbsd-3aed778d2ae156c493770a4d48b498719f540c2d.zip
accept remsh as a valid name as well; roman@buildpoint.com
-rw-r--r--usr.bin/ssh/ssh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c
index 2f9cb3cc022..f28504fdbb7 100644
--- a/usr.bin/ssh/ssh.c
+++ b/usr.bin/ssh/ssh.c
@@ -11,7 +11,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: ssh.c,v 1.58 2000/07/16 08:27:22 markus Exp $");
+RCSID("$OpenBSD: ssh.c,v 1.59 2000/08/19 02:07:23 deraadt Exp $");
#include <openssl/evp.h>
#include <openssl/dsa.h>
@@ -243,8 +243,8 @@ main(int ac, char **av)
cp = strrchr(av0, '/') + 1;
else
cp = av0;
- if (strcmp(cp, "rsh") != 0 && strcmp(cp, "ssh") != 0 &&
- strcmp(cp, "rlogin") != 0 && strcmp(cp, "slogin") != 0)
+ if (strcmp(cp, "rsh") && strcmp(cp, "ssh") && strcmp(cp, "rlogin") &&
+ strcmp(cp, "slogin") && strcmp(cp, "remsh"))
host = cp;
for (optind = 1; optind < ac; optind++) {