[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4] daemon: Set ownership of kept build directories to the ca
From: |
Hartmut Goebel |
Subject: |
Re: [PATCH v4] daemon: Set ownership of kept build directories to the calling user. |
Date: |
Sat, 24 Dec 2016 13:34:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Am 23.12.2016 um 22:15 schrieb Danny Milosavljevic:
> Also, why use the magical value 0 for gid? Why not likewise (gid_t) -1 ?
The "magic value" for gid is -1, too, as you can see in
nix/nix-daemon/nix-daemon.cc.
gid 0 is not used as a magic value. As you can read in the comment, the
test just prohibits changing the group to "root":
settings.clientGid != 0 ? settings.clientGid : -1
--
Regards
Hartmut Goebel
| Hartmut Goebel | address@hidden |
| www.crazy-compilers.com | compilers which you thought are impossible |