about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY4
-rw-r--r--lib/libsystem.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index 008241b3..f2401ce2 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -6,6 +6,10 @@ CHANGE HISTORY
 
 not yet  BJH  Release 10.55.00
 
+              libnetpbm: pm_system(): fix bug - program always takes
+              Standard Input from invoker's Standard Input when you don't
+              supply a Standard Output accepter.
+
 11.03.30 BJH  Release 10.54.00
 
               Add pamrubber.  Thanks Willem van Schaik <willem@schaik.com>.
diff --git a/lib/libsystem.c b/lib/libsystem.c
index 3a7440ba..1f445844 100644
--- a/lib/libsystem.c
+++ b/lib/libsystem.c
@@ -416,7 +416,7 @@ pm_system_vp(const char *    const progName,
         /* Run a child process for the program that sends its Standard Output
            to our Standard Output
         */
-        spawnProcessor(progName, argArray, STDIN, NULL, &processorPid);
+        spawnProcessor(progName, argArray, progStdinFd, NULL, &processorPid);
     }
 
     cleanupProcessorProcess(processorPid);