diff options
Diffstat (limited to 'subsurface-core/macos.c')
-rw-r--r-- | subsurface-core/macos.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/subsurface-core/macos.c b/subsurface-core/macos.c index 70cfc08d4..500412cd8 100644 --- a/subsurface-core/macos.c +++ b/subsurface-core/macos.c @@ -211,3 +211,8 @@ void subsurface_console_exit(void) { /* NOP */ } + +bool subsurface_user_is_root() +{ + return (geteuid() == 0); +} |