summaryrefslogtreecommitdiffstats
path: root/gnu/libexec/uucp/libunix/priv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/libexec/uucp/libunix/priv.c')
-rw-r--r--gnu/libexec/uucp/libunix/priv.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/gnu/libexec/uucp/libunix/priv.c b/gnu/libexec/uucp/libunix/priv.c
deleted file mode 100644
index 207bd3d..0000000
--- a/gnu/libexec/uucp/libunix/priv.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/* priv.c
- See if a user is privileged. */
-
-#include "uucp.h"
-
-#include "sysdep.h"
-#include "system.h"
-
-/* See whether the user is privileged (for example, only privileged
- users are permitted to kill arbitrary jobs with uustat). This is
- true only for root and uucp. We check for uucp by seeing if the
- real user ID and the effective user ID are the same; this works
- because we should be suid to uucp, so our effective user ID will
- always be uucp while our real user ID will be whoever ran the
- program. */
-
-boolean
-fsysdep_privileged ()
-{
- uid_t iuid;
-
- iuid = getuid ();
- return iuid == 0 || iuid == geteuid ();
-}
OpenPOWER on IntegriCloud