--- 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) */