From owner-svn-src-stable-10@FreeBSD.ORG Thu Oct 23 02:53:58 2014 Return-Path: Delivered-To: svn-src-stable-10@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BE151D84; Thu, 23 Oct 2014 02:53:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 A9797A4C; Thu, 23 Oct 2014 02:53:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9N2rwa5041068; Thu, 23 Oct 2014 02:53:58 GMT (envelope-from pfg@FreeBSD.org) Received: (from pfg@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9N2rwDt041067; Thu, 23 Oct 2014 02:53:58 GMT (envelope-from pfg@FreeBSD.org) Message-Id: <201410230253.s9N2rwDt041067@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: pfg set sender to pfg@FreeBSD.org using -f From: "Pedro F. Giffuni" Date: Thu, 23 Oct 2014 02:53:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r273513 - stable/10/usr.sbin/lpr/lpd X-SVN-Group: stable-10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-stable-10@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for only the 10-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Oct 2014 02:53:58 -0000 Author: pfg Date: Thu Oct 23 02:53:57 2014 New Revision: 273513 URL: https://svnweb.freebsd.org/changeset/base/273513 Log: MFC r271789: lpr: replace setpgrp(2) with setpgid(2). setpgid(2) is more portable than setpgrp(2). The BSD variant of setpgrp is a wrapper for setpgid(2) anyways. Modified: stable/10/usr.sbin/lpr/lpd/printjob.c Directory Properties: stable/10/ (props changed) Modified: stable/10/usr.sbin/lpr/lpd/printjob.c ============================================================================== --- stable/10/usr.sbin/lpr/lpd/printjob.c Thu Oct 23 02:50:18 2014 (r273512) +++ stable/10/usr.sbin/lpr/lpd/printjob.c Thu Oct 23 02:53:57 2014 (r273513) @@ -176,7 +176,7 @@ printjob(struct printer *pp) } if(setgid(getegid()) != 0) err(1, "setgid() failed"); printpid = getpid(); /* for use with lprm */ - setpgrp(0, printpid); + setpgid((pid_t)0, printpid); /* * At initial lpd startup, printjob may be called with various