Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
chrony
chrony-fix-open.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chrony-fix-open.patch of Package chrony
Index: chrony-2.3/clknetsim-96416d5d0bb6f8c2356fa067f707f34fc650688c/client.c =================================================================== --- chrony-2.3.orig/clknetsim-96416d5d0bb6f8c2356fa067f707f34fc650688c/client.c +++ chrony-2.3/clknetsim-96416d5d0bb6f8c2356fa067f707f34fc650688c/client.c @@ -945,6 +945,8 @@ int open(const char *pathname, int flags else if (!strcmp(pathname, "/dev/ptp1")) return SYSCLK_FD; + if (!_open) + _open = (int (*)(const char *pathname, int flags))dlsym(RTLD_NEXT, "open"); r = _open(pathname, flags); assert(r < 0 || (r < BASE_SOCKET_FD && r < BASE_TIMER_FD)); @@ -963,6 +965,8 @@ int close(int fd) { return 0; } + if (!_close) + _close = (int (*)(int fd))dlsym(RTLD_NEXT, "close"); return _close(fd); }
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