Browse Source

use pthread_getugid_np instead of gete{u,g}id on OSX. fixes #84

pull/85/head
Antonio SJ Musumeci 9 years ago
parent
commit
f00cd1467e
  1. 3
      src/ugid_osx.hpp

3
src/ugid_osx.hpp

@ -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;

Loading…
Cancel
Save