Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.3
utempter
utempter-ppc64.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File utempter-ppc64.patch of Package utempter
--- utempter-0.5.5/utempter.c +++ utempter-0.5.5/utempter.c @@ -89,6 +89,7 @@ int main(int argc, const char ** argv) { int i; struct stat sb; char * id; + struct timeval tv; if (argc < 3) usage(); @@ -116,6 +117,9 @@ int main(int argc, const char ** argv) { host = NULL; } + memset(&tv, 0, sizeof(tv)); + (void) gettimeofday(&tv, 0); + memset(&utx, 0, sizeof(utx)); if (add) utx.ut_type = USER_PROCESS; @@ -152,7 +156,8 @@ int main(int argc, const char ** argv) { strncpy(utx.ut_id, id, sizeof(utx.ut_id)); - gettimeofday(&utx.ut_tv, NULL); + utx.ut_tv.tv_sec = tv.tv_sec; + utx.ut_tv.tv_usec = tv.tv_usec; pututxline(&utx); updwtmpx(_PATH_WTMP, &utx);
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