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:
parent
867c5d1beb
commit
c47775a2f9
@ -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"); \
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user