Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
python3-libmount.33876
util-linux-libuuid-check-clock-value.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File util-linux-libuuid-check-clock-value.patch of Package python3-libmount.33876
From 5d1424d85ac9e2a1369ee920038825c154ee5443 Mon Sep 17 00:00:00 2001 From: Michael Trapp <michael.trapp@sap.com> Date: Tue, 2 Aug 2022 14:16:43 +0200 Subject: [PATCH 4/4] libuuid: check clock value from LIBUUID_CLOCK_FILE The clock value from the LIBUUID_CLOCK_FILE must be checked in case of an update of libuuid. If clock==CLOCK_SEQ_CONT it must be set to a new value. Signed-off-by: Karel Zak <kzak@redhat.com> --- libuuid/src/gen_uuid.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libuuid/src/gen_uuid.c b/libuuid/src/gen_uuid.c index 807dcd115..e1ba3c3d0 100644 --- a/libuuid/src/gen_uuid.c +++ b/libuuid/src/gen_uuid.c @@ -274,6 +274,11 @@ static int get_clock(uint32_t *clock_high, uint32_t *clock_low, last.tv_usec = tv2; adjustment = a; } + // reset in case of reserved CLOCK_SEQ_CONT + if (clock_seq == CLOCK_SEQ_CONT) { + last.tv_sec = 0; + last.tv_usec = 0; + } } if ((last.tv_sec == 0) && (last.tv_usec == 0)) { -- 2.37.3
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