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/isadump.c

    r5163 r5709  
    215215        } 
    216216 
    217         if (getuid()) { 
     217        if (geteuid()) { 
    218218                fprintf(stderr, "Error: Can only be run as root (or make it " 
    219219                        "suid root)\n");