de5d64bd86
- refresh patches to apply cleanly again - chrony-config.patch - chrony-fix-open.patch OBS-URL: https://build.opensuse.org/request/show/529908 OBS-URL: https://build.opensuse.org/package/show/network:time/chrony?expand=0&rev=31
23 lines
775 B
Diff
23 lines
775 B
Diff
Index: chrony-3.2/clknetsim-71dbbc509eee05cb29e33468be93d5ba52b79429/client.c
|
|
===================================================================
|
|
--- chrony-3.2.orig/clknetsim-71dbbc509eee05cb29e33468be93d5ba52b79429/client.c
|
|
+++ chrony-3.2/clknetsim-71dbbc509eee05cb29e33468be93d5ba52b79429/client.c
|
|
@@ -1008,6 +1008,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));
|
|
|
|
@@ -1026,6 +1028,8 @@ int close(int fd) {
|
|
return 0;
|
|
}
|
|
|
|
+ if (!_close)
|
|
+ _close = (int (*)(int fd))dlsym(RTLD_NEXT, "close");
|
|
return _close(fd);
|
|
}
|
|
|