diff options
-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 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) { |