chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cb6fa44
)
nspawn: fix detection of missing /proc/self/loginuid
author
Tero Roponen
<tero.roponen@gmail.com>
Tue, 25 Feb 2014 15:19:35 +0000
(17:19 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 28 Feb 2014 11:58:02 +0000
(12:58 +0100)
Running 'systemd-nspawn -D /srv/Fedora/' gave me this error:
Failed to read /proc/self/loginuid: No such file or directory
Container Fedora failed with error code 1.
This patch fixes the problem.
src/nspawn/nspawn.c
patch
|
blob
|
history
diff --git
a/src/nspawn/nspawn.c
b/src/nspawn/nspawn.c
index 1fe641b7ca1a1ca28461725f5c5f9636edec147d..92b67286762350c9b53fe555a404dd8f74235e3c 100644
(file)
--- 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 == -E
EXIS
T)
+ if (r == -E
NOEN
T)
return 0;
if (r < 0) {
log_error("Failed to read /proc/self/loginuid: %s", strerror(-r));