Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:16.0:FactoryCandidates
frozen-bubble
frozen-bubble-2.212-unused-result.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File frozen-bubble-2.212-unused-result.patch of Package frozen-bubble
diff -Naur frozen-bubble-2.212.orig/server/tools.c frozen-bubble-2.212/server/tools.c --- frozen-bubble-2.212.orig/server/tools.c 2012-10-24 19:53:38.000000000 +0200 +++ frozen-bubble-2.212/server/tools.c 2012-12-20 10:08:37.398020046 +0100 @@ -261,8 +261,12 @@ if (user_to_switch != NULL) { struct passwd* user = getpwnam(user_to_switch); if (user) { - setgid(user->pw_gid); - setuid(user->pw_uid); + if(setgid(user->pw_gid) == -1) { + printf("failed to set gid\n"); + } + if(setuid(user->pw_uid) == -1) { + printf("failed to set uid\n"); + } } else { l2(OUTPUT_TYPE_ERROR, "Cannot switch user to %s: %s", user_to_switch, strerror(errno)); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor