mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04: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
1 changed files with 1 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue