diff options
author | Peter Wemm <peter@FreeBSD.org> | 1996-08-16 17:05:49 +0000 |
---|---|---|
committer | Peter Wemm <peter@FreeBSD.org> | 1996-08-16 17:05:49 +0000 |
commit | a8032cb64ceed47e8e4e23b35100b37f124a1276 (patch) | |
tree | 51088b0b8fefb762cda6336c573036c7571fc58c /net/rdist6/files/patch-ae | |
parent | moved xephem to `misc', MOTIF_STATIC should work (diff) |
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).
Notes
Notes:
svn path=/head/; revision=3624
Diffstat (limited to 'net/rdist6/files/patch-ae')
-rw-r--r-- | net/rdist6/files/patch-ae | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rdist6/files/patch-ae b/net/rdist6/files/patch-ae index 72b1fd99d753..a83aa89f354e 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) { |