From: msweet Date: Tue, 17 Feb 2015 20:00:17 +0000 (+0000) Subject: Fix empty stdin open... X-Git-Tag: v2.2b1~337 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0907c437d226ebd40588666c16f20d2ced9d74e6;p=thirdparty%2Fcups.git Fix empty stdin open... git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12521 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/scheduler/process.c b/scheduler/process.c index b1fbfff7db..1f45368abc 100644 --- a/scheduler/process.c +++ b/scheduler/process.c @@ -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); }