diff options
Diffstat (limited to 'sys-utils/hwclock.c')
-rw-r--r-- | sys-utils/hwclock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys-utils/hwclock.c b/sys-utils/hwclock.c index a934acea2..474e04fdc 100644 --- a/sys-utils/hwclock.c +++ b/sys-utils/hwclock.c @@ -1495,6 +1495,9 @@ static int compare_clock (const bool utc, const bool local_opt) bool hclock_valid = FALSE, universal, first_pass = TRUE; int rc; + if (ur->get_permissions()) + return EX_NOPERM; + /* dummy call for increased precision */ gettimeofday(&tv, NULL); @@ -1893,7 +1896,7 @@ int main(int argc, char **argv) } if (!(show | set | systohc | hctosys | systz | adjust | getepoch - | setepoch | predict)) + | setepoch | predict | compare)) show = 1; /* default to show */ if (getuid() == 0) |