Use geteuid instead of getuid so that setuid bit works.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5709 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2009-04-19 07:16:40 +00:00
1 parent 7fd91785d4
commit 3e78f8323b
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -2,6 +2,8 @@ lm-sensors CHANGES file
-----------------------
SVN-HEAD
isadump: Use geteuid instead of getuid so that setuid bit works
isaset: Use geteuid instead of getuid so that setuid bit works
sensors-detect: Add nNidia nForce MCP78S SMBus detection
Display Super-I/O address even if LD is disabled
Differentiate between PC8374L and WPCD377I
+1 -1
View File
@@ -214,7 +214,7 @@ int main(int argc, char *argv[])
}
}
if (getuid()) {
if (geteuid()) {
fprintf(stderr, "Error: Can only be run as root (or make it "
"suid root)\n");
exit(1);
+1 -1
View File
@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
}
}
if (getuid()) {
if (geteuid()) {
fprintf(stderr, "Error: Can only be run as root "
"(or make it suid root)\n");
exit(1);