ports/print/cups/files/patch-scheduler_client.c
Tijl Coosemans add06b461d The return value of cupsdStartProcess is zero on error. Fix two cases
where this is checked incorrectly.

PR:		211465
2017-01-12 16:33:12 +00:00

13 lines
468 B
C

--- scheduler/client.c.orig 2016-10-03 19:55:40 UTC
+++ scheduler/client.c
@@ -3818,8 +3818,8 @@ pipe_command(cupsd_client_t *con, /* I -
* Then execute the command...
*/
- if (cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
- -1, -1, root, DefaultProfile, NULL, &pid) < 0)
+ if (!cupsdStartProcess(command, argv, envp, infile, fds[1], CGIPipes[1],
+ -1, -1, root, DefaultProfile, NULL, &pid))
{
/*
* Error - can't fork!