From owner-svn-ports-head@freebsd.org Thu Jan 12 16:33:14 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7899ACAC260; Thu, 12 Jan 2017 16:33:14 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E28014A5; Thu, 12 Jan 2017 16:33:14 +0000 (UTC) (envelope-from tijl@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0CGXDf3053637; Thu, 12 Jan 2017 16:33:13 GMT (envelope-from tijl@FreeBSD.org) Received: (from tijl@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0CGXDUd053634; Thu, 12 Jan 2017 16:33:13 GMT (envelope-from tijl@FreeBSD.org) Message-Id: <201701121633.v0CGXDUd053634@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tijl set sender to tijl@FreeBSD.org using -f From: Tijl Coosemans Date: Thu, 12 Jan 2017 16:33:13 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431282 - in head/print/cups: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2017 16:33:14 -0000 Author: tijl Date: Thu Jan 12 16:33:12 2017 New Revision: 431282 URL: https://svnweb.freebsd.org/changeset/ports/431282 Log: The return value of cupsdStartProcess is zero on error. Fix two cases where this is checked incorrectly. PR: 211465 Added: head/print/cups/files/patch-scheduler_client.c (contents, props changed) head/print/cups/files/patch-scheduler_subscriptions.c (contents, props changed) Modified: head/print/cups/Makefile Modified: head/print/cups/Makefile ============================================================================== --- head/print/cups/Makefile Thu Jan 12 15:53:07 2017 (r431281) +++ head/print/cups/Makefile Thu Jan 12 16:33:12 2017 (r431282) @@ -4,6 +4,7 @@ PORTNAME= cups PORTVERSION= 2.2.1 DISTVERSIONPREFIX=v +PORTREVISION= 1 CATEGORIES= print MAINTAINER= tijl@FreeBSD.org Added: head/print/cups/files/patch-scheduler_client.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/cups/files/patch-scheduler_client.c Thu Jan 12 16:33:12 2017 (r431282) @@ -0,0 +1,13 @@ +--- 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! Added: head/print/cups/files/patch-scheduler_subscriptions.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/print/cups/files/patch-scheduler_subscriptions.c Thu Jan 12 16:33:12 2017 (r431282) @@ -0,0 +1,13 @@ +--- 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!