diff options
-rw-r--r-- | src/lib/libc/net/rcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c index 01554868d6..16ea9bc95b 100644 --- a/src/lib/libc/net/rcmd.c +++ b/src/lib/libc/net/rcmd.c | |||
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
37 | static char *rcsid = "$OpenBSD: rcmd.c,v 1.17 1996/09/03 10:53:37 deraadt Exp $"; | 37 | static char *rcsid = "$OpenBSD: rcmd.c,v 1.18 1996/09/05 02:37:27 millert Exp $"; |
38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
39 | 39 | ||
40 | #include <sys/param.h> | 40 | #include <sys/param.h> |
@@ -76,7 +76,7 @@ rcmd(ahost, rport, locuser, remuser, cmd, fd2p) | |||
76 | char c, *p; | 76 | char c, *p; |
77 | 77 | ||
78 | /* call rcmdsh() with specified remote shell if appropriate. */ | 78 | /* call rcmdsh() with specified remote shell if appropriate. */ |
79 | if ((p = getenv("RSH"))) { | 79 | if (!issetugid() && (p = getenv("RSH"))) { |
80 | struct servent *sp = getservbyname("shell", "tcp"); | 80 | struct servent *sp = getservbyname("shell", "tcp"); |
81 | 81 | ||
82 | if (sp && sp->s_port == rport) | 82 | if (sp && sp->s_port == rport) |