SHA256
1
0
forked from pool/chrony
chrony/chrony-fix-open.patch
Martin Pluskal c32c19f1ec Accepting request 400656 from home:darix:playground
- update to 2.4:
- update clknetsim to a5949fe for fixing a testsuite failure:
- refreshed chrony-fix-open.patch: to apply cleanly after clknetsim
  update
- drop patches:
  - chrony-include-termios.patch
  - make-105-ntpauth-more-reliable.patch
- drop buildrequires for texinfo and pre requires on the install
  info packages
- no longer use make install-docs: it only installed 0 byte html
  files.

OBS-URL: https://build.opensuse.org/request/show/400656
OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=20
2016-06-08 13:53:28 +00:00

23 lines
771 B
Diff

Index: chrony-2.4/clknetsim-a5949fedf7e0f78a756bd29fe93fa1e4f72cdc42/client.c
===================================================================
--- chrony-2.4.orig/clknetsim-a5949fedf7e0f78a756bd29fe93fa1e4f72cdc42/client.c
+++ chrony-2.4/clknetsim-a5949fedf7e0f78a756bd29fe93fa1e4f72cdc42/client.c
@@ -954,6 +954,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));
@@ -972,6 +974,8 @@ int close(int fd) {
return 0;
}
+ if (!_close)
+ _close = (int (*)(int fd))dlsym(RTLD_NEXT, "close");
return _close(fd);
}