Show
Ignore:
Timestamp:
04/19/09 09:16:40 (4 years ago)
Author:
khali
Message:

Use geteuid instead of getuid so that setuid bit works.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/prog/dump/isaset.c

    r5163 r5709  
    157157        } 
    158158 
    159         if (getuid()) { 
     159        if (geteuid()) { 
    160160                fprintf(stderr, "Error: Can only be run as root " 
    161161                        "(or make it suid root)\n");