forked from pool/util-linux
14 lines
370 B
Diff
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) */
|