From 9bf20a05dc426ec61deecad4add51f930236d18d Mon Sep 17 00:00:00 2001 From: Mikhail Teterin Date: Fri, 28 Oct 2005 23:07:50 +0000 Subject: 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. --- net/rdist6/files/patch-ae | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/rdist6/files') 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); + -- cgit v1.2.3