]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix empty stdin open...
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 17 Feb 2015 20:00:17 +0000 (20:00 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 17 Feb 2015 20:00:17 +0000 (20:00 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12521 a1ca3aef-8c08-0410-bb20-df032aa958be

scheduler/process.c

index b1fbfff7db090dad5f38912b4dfe20293b85b657..1f45368abc3d8eecbebf71e19c1bac776c7cff13 100644 (file)
@@ -606,7 +606,7 @@ cupsdStartProcess(
   if (infd != 0)
   {
     if (infd < 0)
-      posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_WRONLY, 0);
+      posix_spawn_file_actions_addopen(&actions, 0, "/dev/null", O_RDONLY, 0);
     else
       posix_spawn_file_actions_adddup2(&actions, infd, 0);
   }