fix(sys-apps/systemd): add patch for loginuid issue

This commit is contained in:
Alex Polvi 2014-03-03 20:19:18 -08:00 committed by Michael Marineau
parent e02d6120cd
commit b7e1c4ed13
2 changed files with 15 additions and 0 deletions

View File

@ -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));

View File

@ -97,6 +97,8 @@ KEYWORDS=
fi
src_prepare() {
epatch "${FILESDIR}"/210-0001-fix-detection-of-missing-loginuid.patch
if use doc; then
gtkdocize --docdir docs/ || die
else