  #include <rpc/types.h>
  #include <rpc/xdr.h>
  #include <string>
-@@ -252,13 +253,15 @@ namespace HadoopUtils {
+@@ -252,13 +253,15 @@
      stream.write(buf, sizeof(float));
    }
  

     writePasswordToLocalFile(localPasswordFile, password, conf);
     env.put("hadoop.pipes.shared.secret.location", localPasswordFile);
  
@@ -120,7 +128,6 @@ class Application<K1 extends WritableComparable, V1 extends Writable,
     }
     cmd.add(executable);
     // wrap the command in a stdout/stderr capture

     // we are starting map/reduce task of the pipes job. this is not a cleanup
     // attempt. 
     File stdout = TaskLog.getTaskLogFile(taskid, false, TaskLog.LogName.STDOUT);
diff -urN src/hadoop-1.0.4/pipes/impl/HadoopPipes.cc src/hadoop-1.0.4.patched/pipes/impl/HadoopPipes.cc
--- src/hadoop-1.0.4/pipes/impl/HadoopPipes.cc	2012-12-03 19:17:41.471432541 +0100
+++ src/hadoop-1.0.4.patched/pipes/impl/HadoopPipes.cc	2013-02-14 00:00:15.745377986 +0100
@@ -30,6 +30,7 @@
 #include <stdlib.h>
 #include <string.h>
