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