From owner-svn-src-all@FreeBSD.ORG Wed Oct 24 16:03:06 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8FCFABF0; Wed, 24 Oct 2012 16:03:06 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 772A78FC08; Wed, 24 Oct 2012 16:03:06 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9OG36cF046990; Wed, 24 Oct 2012 16:03:06 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9OG36D6046988; Wed, 24 Oct 2012 16:03:06 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201210241603.q9OG36D6046988@svn.freebsd.org> From: Eitan Adler Date: Wed, 24 Oct 2012 16:03:06 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242005 - head/usr.sbin/lpr/common_source X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Oct 2012 16:03:06 -0000 Author: eadler Date: Wed Oct 24 16:03:05 2012 New Revision: 242005 URL: http://svn.freebsd.org/changeset/base/242005 Log: PRIV_START and PRIV_END were reversed. Submitted by: KAHO Toshikazu Approved by: secteam (simon) MFC after: 3 days Modified: head/usr.sbin/lpr/common_source/lp.h Modified: head/usr.sbin/lpr/common_source/lp.h ============================================================================== --- head/usr.sbin/lpr/common_source/lp.h Wed Oct 24 15:45:26 2012 (r242004) +++ head/usr.sbin/lpr/common_source/lp.h Wed Oct 24 16:03:05 2012 (r242005) @@ -253,10 +253,10 @@ typedef enum { TR_SENDING, TR_RECVING, T * seteuid() macros. */ #define PRIV_START { \ - if (seteuid(uid) != 0) err(1, "seteuid failed"); \ + if (seteuid(euid) != 0) err(1, "seteuid failed"); \ } #define PRIV_END { \ - if (seteuid(euid) != 0) err(1, "seteuid failed"); \ + if (seteuid(uid) != 0) err(1, "seteuid failed"); \ }