components/parallel/patches/src.sql.patch
author Girish Moodalbail <Girish.Moodalbail@oracle.COM>
Mon, 27 Oct 2014 14:51:05 -0700
changeset 2174 2856bd2e4b18
parent 1083 dcfa3638d3e2
child 5383 daa35fd7ea40
permissions -rw-r--r--
19898528 PBR rule must not forward packets addressed to internal default gateway

This patch is needed because the sql script is expecting the which 
command to return errors on stderr, not stdout and assumes anything
on stdout is an actual path.   (And since /bin/which starts a new 
csh, it only checks .cshrc $PATH not current $PATH settings.)

--- parallel-20120422/src/sql.orig	2012-12-11 13:21:20.855778203 -0800
+++ parallel-20120422/src/sql	2012-12-11 13:22:33.870295549 -0800
@@ -890,7 +890,7 @@
 sub find_command_in_path {
     # Find the command if it exists in the current path
     my $command = shift;
-    my $path = `which $command`;
+    my $path = `/usr/gnu/bin/which $command`;
     chomp $path;
     return $path;
 }