systemd/0753-shared-move-uid-alloc-range.-ch-from-src-shared-src-.patch
Jan Macku 75aa201631 systemd-252-37
Resolves: RHEL-13159,RHEL-20322,RHEL-27512,RHEL-30372,RHEL-31070,RHEL-31219,RHEL-33890,RHEL-35703,RHEL-38864,RHEL-40878,RHEL-6589
2024-06-13 16:16:12 +02:00

58 lines
2.0 KiB
Diff

From f69edd2042ebf1db72ad1a2c6cbfd8887231da25 Mon Sep 17 00:00:00 2001
From: Lennart Poettering <lennart@poettering.net>
Date: Wed, 7 Jun 2023 15:15:42 +0200
Subject: [PATCH] =?UTF-8?q?shared:=20move=20uid-alloc-range.[ch]=20from=20?=
=?UTF-8?q?src/shared/=20=E2=86=92=20src/basic/?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This way we can use it in libsystemd
(cherry picked from commit 8a8b4a8784f48e941b6b460b4cb963929d1d6a8d)
Related: RHEL-31070
---
src/basic/meson.build | 2 ++
src/{shared => basic}/uid-alloc-range.c | 0
src/{shared => basic}/uid-alloc-range.h | 0
src/shared/meson.build | 2 --
4 files changed, 2 insertions(+), 2 deletions(-)
rename src/{shared => basic}/uid-alloc-range.c (100%)
rename src/{shared => basic}/uid-alloc-range.h (100%)
diff --git a/src/basic/meson.build b/src/basic/meson.build
index bfe52d5879..c0f0b07418 100644
--- a/src/basic/meson.build
+++ b/src/basic/meson.build
@@ -240,6 +240,8 @@ basic_sources = files(
'time-util.h',
'tmpfile-util.c',
'tmpfile-util.h',
+ 'uid-alloc-range.c',
+ 'uid-alloc-range.h',
'uid-range.c',
'uid-range.h',
'umask-util.h',
diff --git a/src/shared/uid-alloc-range.c b/src/basic/uid-alloc-range.c
similarity index 100%
rename from src/shared/uid-alloc-range.c
rename to src/basic/uid-alloc-range.c
diff --git a/src/shared/uid-alloc-range.h b/src/basic/uid-alloc-range.h
similarity index 100%
rename from src/shared/uid-alloc-range.h
rename to src/basic/uid-alloc-range.h
diff --git a/src/shared/meson.build b/src/shared/meson.build
index 9e11e13934..766e4f9506 100644
--- a/src/shared/meson.build
+++ b/src/shared/meson.build
@@ -311,8 +311,6 @@ shared_sources = files(
'tpm2-util.h',
'udev-util.c',
'udev-util.h',
- 'uid-alloc-range.c',
- 'uid-alloc-range.h',
'user-record-nss.c',
'user-record-nss.h',
'user-record-show.c',