mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-03 13:38:25 +00:00
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:
1 parent
7fd91785d4
commit
3e78f8323b
3 files changed
+4
-2
No files matched your search
@@ -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
@@ -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
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user