From ab2e7dd17f556d501d27c6b0ae2c0989d5d9dae4 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 29 Jun 2009 16:01:42 +0200 Subject: [PATCH] libuuid: move clock state file from /var/lib to /var/run Signed-off-by: Karel Zak --- shlibs/uuid/src/gen_uuid.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shlibs/uuid/src/gen_uuid.c b/shlibs/uuid/src/gen_uuid.c index 8497ac67..21034199 100644 --- a/shlibs/uuid/src/gen_uuid.c +++ b/shlibs/uuid/src/gen_uuid.c @@ -109,6 +109,8 @@ THREAD_LOCAL unsigned short jrand_seed[3]; #endif +#define UUID_CLOCK_STATE "/var/run/libuuid/clock" + #ifdef _WIN32 static void gettimeofday (struct timeval *tv, void *dummy) { @@ -322,8 +324,7 @@ static int get_clock(uint32_t *clock_high, uint32_t *clock_low, if (state_fd == -2) { save_umask = umask(0); - state_fd = open("/var/lib/libuuid/clock.txt", - O_RDWR|O_CREAT, 0660); + state_fd = open(UUID_CLOCK_STATE, O_RDWR|O_CREAT, 0660); (void) umask(save_umask); state_f = fdopen(state_fd, "r+"); if (!state_f) { -- 2.39.5