summaryrefslogtreecommitdiff
path: root/src/nspawn
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-09-24 23:22:19 +0200
committerLennart Poettering <lennart@poettering.net>2012-09-24 23:26:46 +0200
commit963ddb917de3140308ee62fb642b2307a577a39e (patch)
treeedfad917a0360b81c69a5030fe13b5716a687e46 /src/nspawn
parent1920e37ef9fec04a1fd882f66bfa7a9a5b91c536 (diff)
log: fix repeated invocation of vsnprintf()/vaprintf() in log_struct()
https://bugs.freedesktop.org/show_bug.cgi?id=55213
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index 959df4e0d..5cac32cd8 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -1307,6 +1307,12 @@ int main(int argc, char *argv[]) {
if (arg_user) {
+ /* Note that this resolves user names
+ * inside the container, and hence
+ * accesses the NSS modules from the
+ * container and not the host. This is
+ * a bit weird... */
+
if (get_user_creds((const char**)&arg_user, &uid, &gid, &home, NULL) < 0) {
log_error("get_user_creds() failed: %m");
goto child_fail;