Browse Source

Merge pull request #85 from trapexit/pthread_getugid_np

use pthread_getugid_np instead of gete{u,g}id on OSX. fixes #84
pull/87/head
Antonio SJ Musumeci 10 years ago
parent
commit
c505ec0cdb
  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