mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
fix(sys-apps/systemd): add patch for loginuid issue
This commit is contained in:
parent
e02d6120cd
commit
b7e1c4ed13
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
|
||||||
|
index 1a02935..e6f8ce7 100644
|
||||||
|
--- a/src/nspawn/nspawn.c
|
||||||
|
+++ b/src/nspawn/nspawn.c
|
||||||
|
@@ -1349,7 +1349,7 @@ static int reset_audit_loginuid(void) {
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
r = read_one_line_file("/proc/self/loginuid", &p);
|
||||||
|
- if (r == -EEXIST)
|
||||||
|
+ if (r == -ENOENT)
|
||||||
|
return 0;
|
||||||
|
if (r < 0) {
|
||||||
|
log_error("Failed to read /proc/self/loginuid: %s", strerror(-r));
|
@ -97,6 +97,8 @@ KEYWORDS=
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
|
epatch "${FILESDIR}"/210-0001-fix-detection-of-missing-loginuid.patch
|
||||||
|
|
||||||
if use doc; then
|
if use doc; then
|
||||||
gtkdocize --docdir docs/ || die
|
gtkdocize --docdir docs/ || die
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user