Date: Wed, 24 Oct 2012 16:03:06 +0000 (UTC) From: Eitan Adler <eadler@FreeBSD.org> 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 Message-ID: <201210241603.q9OG36D6046988@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <kaho@elam.kais.kyoto-u.ac.jp> 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"); \ }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210241603.q9OG36D6046988>