chiark / gitweb /
unit: introduce %s specifier for the user shell
[elogind.git] / src / core / execute.c
index c0e8f9e01302677ea1fd89016ea0885ce530b90d..daba1a384683f766470847bdf7fddebac8f5db76 100644 (file)
@@ -1182,7 +1182,7 @@ int exec_spawn(ExecCommand *command,
 
                 if (context->user) {
                         username = context->user;
-                        err = get_user_creds(&username, &uid, &gid, &home);
+                        err = get_user_creds(&username, &uid, &gid, &home, NULL);
                         if (err < 0) {
                                 r = EXIT_USER;
                                 goto fail_child;