ports/print/cups/files/patch-scheduler_subscriptions.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
462 B
C

--- scheduler/subscriptions.c.orig 2016-10-03 19:55:40 UTC
+++ scheduler/subscriptions.c
@@ -1561,8 +1561,8 @@ cupsd_start_notifier(
* Create the notifier process...
*/
- if (cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1],
- -1, -1, 0, DefaultProfile, NULL, &pid) < 0)
+ if (!cupsdStartProcess(command, argv, envp, fds[0], -1, NotifierPipes[1],
+ -1, -1, 0, DefaultProfile, NULL, &pid))
{
/*
* Error - can't fork!