mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
Factor out isRootUser
function
This commit is contained in:
parent
eeecbb9c36
commit
e4d9b207c2
11 changed files with 30 additions and 15 deletions
|
@ -55,4 +55,10 @@ Path createNixStateDir();
|
|||
*/
|
||||
std::string expandTilde(std::string_view path);
|
||||
|
||||
|
||||
/**
|
||||
* Is the current user UID 0 on Unix?
|
||||
*/
|
||||
bool isRootUser();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue