summaryrefslogtreecommitdiff
path: root/net/rdist6/files
diff options
context:
space:
mode:
authorMikhail Teterin <mi@FreeBSD.org>2005-10-28 23:07:50 +0000
committerMikhail Teterin <mi@FreeBSD.org>2005-10-28 23:07:50 +0000
commit9bf20a05dc426ec61deecad4add51f930236d18d (patch)
tree70469b126b34725acb606f819c2dc0946016b845 /net/rdist6/files
parentExtend -fPIC hack to cover ia64 to try and fix build (diff)
Fix patch-ae to compare the specified rsh-equivalent with "/usr/bin/rsh" instead
of the compiled in _PATH_REMSH, which is now ssh. This allows some users to still specify /usr/bin/rsh and (if they run as root) have the program use rcmd(), while solving the problems like that in the PR: 79093 Submitted by: Alex Deiter Bump PORTREVISION.
Notes
Notes: svn path=/head/; revision=146616
Diffstat (limited to 'net/rdist6/files')
-rw-r--r--net/rdist6/files/patch-ae2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rdist6/files/patch-ae b/net/rdist6/files/patch-ae
index 8a8766b5a4a7..bd3a1ba9b120 100644
--- a/net/rdist6/files/patch-ae
+++ b/net/rdist6/files/patch-ae
@@ -29,7 +29,7 @@
if (becomeuser() != 0)
exit(1);
#else /* !DIRECT_RCMD */
-! if (geteuid() == 0 && strcmp(path_remsh, _PATH_REMSH) == 0) {
+! if (geteuid() == 0 && strcmp(path_remsh, "/usr/bin/rsh") == 0) {
! debugmsg(DM_MISC, "I am root, using rsh, therefore direct rcmd\n");
(void) signal(SIGPIPE, sighandler);
+