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
This commit is contained in:
Eitan Adler 2012-10-24 16:03:05 +00:00
parent 867c5d1beb
commit c47775a2f9

View File

@ -253,10 +253,10 @@ typedef enum { TR_SENDING, TR_RECVING, TR_PRINTING } tr_sendrecv;
* 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"); \
}