1
0
forked from pool/util-linux
util-linux/util-linux-2.11z-hwclock_geteuid.diff

12 lines
244 B
Diff

--- hwclock/hwclock.c
+++ hwclock/hwclock.c
@@ -1446,7 +1446,7 @@
show = 1; /* default to show */
- if (getuid() == 0)
+ if (geteuid() == 0)
permitted = TRUE;
else {
/* program is designed to run setuid (in some situations) */