diff options
author | Tero Roponen <tero.roponen@gmail.com> | 2014-02-25 17:19:35 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-28 12:58:02 +0100 |
commit | 13e8ceb84e56907d73b6b07418deb37faaf0e66d (patch) | |
tree | bc68c19cf95f55ea4eee35b6a10f81b7fdc90a18 | |
parent | cb6fa44cb5411ed574f14109ee862ff663ab0a36 (diff) |
nspawn: fix detection of missing /proc/self/loginuid
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.
-rw-r--r-- | src/nspawn/nspawn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index 1fe641b7ca..92b6728676 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)); |