diff --git a/lib/proc.c b/lib/proc.c index becdbcb7..d8e21476 100644 --- a/lib/proc.c +++ b/lib/proc.c @@ -18,6 +18,9 @@ */ #include +#ifdef DEBUG +#include /* for getuid(), to be removed */ +#endif #include #include #include @@ -358,6 +361,13 @@ int sensors_write_proc(sensors_chip_name name, int feature, double value) value /= 10.0; * ((long *) (buf + the_feature->offset)) = (long) value; buflen = the_feature->offset + sizeof(long); +#ifdef DEBUG + /* The following get* calls don't do anything, they are here + for debugging purposes only. Strace will show the + returned values. */ + getuid(); geteuid(); + getgid(); getegid(); +#endif if (sysctl(sysctl_name, 4, NULL, 0, buf, buflen)) return -SENSORS_ERR_PROC; }