Skip to content

Commit

Permalink
use pthread_getugid_np instead of gete{u,g}id on OSX. fixes #84
Browse files Browse the repository at this point in the history
  • Loading branch information
trapexit committed Jul 15, 2015
1 parent e4be3aa commit f00cd14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ugid_osx.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ namespace mergerfs
SetResetGuard(const uid_t _newuid,
const gid_t _newgid)
{
olduid = ::geteuid();
oldgid = ::getegid();
pthread_getugid_np(&olduid,&oldgid);
newuid = _newuid;
newgid = _newgid;

Expand Down

0 comments on commit f00cd14

Please sign in to comment.