diff options
author | Michael Nottebrock <lofi@FreeBSD.org> | 2006-06-09 16:07:01 +0000 |
---|---|---|
committer | Michael Nottebrock <lofi@FreeBSD.org> | 2006-06-09 16:07:01 +0000 |
commit | 869f68a326a7b15a2c6b7d6a101abd549628dbb9 (patch) | |
tree | 81be0b5d569b3e68d240cb86916e5bc904299064 /audio/artswrapper | |
parent | - Fix LDAP support (diff) |
Don't assume setuid() cannot fail for suid root applications.
Diffstat (limited to 'audio/artswrapper')
-rw-r--r-- | audio/artswrapper/files/artswrapper.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/artswrapper/files/artswrapper.c b/audio/artswrapper/files/artswrapper.c index eb86fd23417c..ee6814e9d080 100644 --- a/audio/artswrapper/files/artswrapper.c +++ b/audio/artswrapper/files/artswrapper.c @@ -93,6 +93,10 @@ int main(int argc, char **argv) #else setreuid(-1, getuid()); #endif + if (geteuid() != getuid()) { + perror("setuid()"); + return 2; + } } if(argc == 0) |