3
0
forked from pool/util-linux
util-linux/util-linux-2.11z-hwclock_geteuid.patch

14 lines
370 B
Diff

Index: hwclock/hwclock.c
===================================================================
--- hwclock/hwclock.c.orig
+++ hwclock/hwclock.c
@@ -1480,7 +1480,7 @@ main(int argc, char **argv) {
show = 1; /* default to show */
- if (getuid() == 0)
+ if (geteuid() == 0)
permitted = TRUE;
else {
/* program is designed to run setuid (in some situations) */