summaryrefslogtreecommitdiffstats
path: root/net/rdist6
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-08-16 17:05:49 +0000
committerpeter <peter@FreeBSD.org>1996-08-16 17:05:49 +0000
commit4de286b413adc50bfe9bca3d95aff62595d70278 (patch)
treef66166de0bd69261af46ba4c5b294e9c3e6bd3e8 /net/rdist6
parent13ed7be4ffe0a663d63e9668fbfc10d1dffbec6a (diff)
downloadFreeBSD-ports-4de286b413adc50bfe9bca3d95aff62595d70278.zip
FreeBSD-ports-4de286b413adc50bfe9bca3d95aff62595d70278.tar.gz
aargh, I forgot to commit this. This fixes an optimization originally
for rdist-6.1.0, which is not quite valid on 6.1.2 when used with an alternate rsh-like transport (such as ssh).
Diffstat (limited to 'net/rdist6')
-rw-r--r--net/rdist6/files/patch-ae4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rdist6/files/patch-ae b/net/rdist6/files/patch-ae
index 72b1fd9..a83aa89 100644
--- a/net/rdist6/files/patch-ae
+++ b/net/rdist6/files/patch-ae
@@ -35,8 +35,8 @@ diff -c -r1.1.1.1 -r1.2
if (becomeuser() != 0)
exit(1);
#else /* !DIRECT_RCMD */
-! if (geteuid() == 0) {
-! debugmsg(DM_MISC, "I am root, therefore direct rcmd\n");
+! if (geteuid() == 0 && strcmp(path_remsh, _PATH_REMSH) == 0) {
+! debugmsg(DM_MISC, "I am root, using rsh, therefore direct rcmd\n");
(void) signal(SIGPIPE, sighandler);
+
+ if (port < 0) {
OpenPOWER on IntegriCloud