/* Dropping uid/gid privileges of the current process permanently.
- Copyright (C) 2009 Free Software Foundation, Inc.
+ Copyright (C) 2009-2011 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
uid_t effective;
uid_t saved;
if (getresuid (&real, &effective, &saved) < 0
- || real != uid
- || effective != uid
- || saved != uid)
+ || real != uid
+ || effective != uid
+ || saved != uid)
abort ();
}
#else
gid_t effective;
gid_t saved;
if (getresgid (&real, &effective, &saved) < 0
- || real != gid
- || effective != gid
- || saved != gid)
+ || real != gid
+ || effective != gid
+ || saved != gid)
abort ();
}
#else