mirror of
https://github.com/trapexit/mergerfs.git
synced 2025-03-14 09:55:12 +08:00
Merge pull request #85 from trapexit/pthread_getugid_np
use pthread_getugid_np instead of gete{u,g}id on OSX. fixes #84
This commit is contained in:
commit
c505ec0cdb
@ -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…
x
Reference in New Issue
Block a user