Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
mc
mc-getpwuid.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mc-getpwuid.patch of Package mc
--- edit/editlock.c +++ edit/editlock.c @@ -69,9 +69,11 @@ lock_build_name (void) { char host[BUF_SIZE]; - const char *user; + const char *user = NULL; + struct passwd *pw; - user = getpwuid (getuid ())->pw_name; + pw = getpwuid (getuid ()); + if (pw) user = pw->pw_name; if (!user) user = getenv ("USER"); if (!user) user = getenv ("USERNAME"); if (!user) user = getenv ("LOGNAME");
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