1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

* Move setuidCleanup() to libutil.

This commit is contained in:
Eelco Dolstra 2006-12-07 16:40:41 +00:00
parent f76fdb6d42
commit a82d80ddeb
5 changed files with 23 additions and 27 deletions

View file

@ -12,11 +12,12 @@
#include "util.hh"
#include "../libmain/setuid-common.hh"
using namespace nix;
extern char * * environ;
/* Recursively change the ownership of `path' to user `uidTo' and
group `gidTo'. `path' must currently be owned by user `uidFrom',
or, if `uidFrom' is -1, by group `gidFrom'. */