mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +03:00
run: use SPECIAL_USER_SLICE
This commit is contained in:
parent
b431c090be
commit
80a8dbb4ea
@ -32,6 +32,7 @@
|
||||
#include "ptyfwd.h"
|
||||
#include "signal-util.h"
|
||||
#include "spawn-polkit-agent.h"
|
||||
#include "special.h"
|
||||
#include "strv.h"
|
||||
#include "terminal-util.h"
|
||||
#include "unit-def.h"
|
||||
@ -903,7 +904,7 @@ static int parse_argv_sudo_mode(int argc, char *argv[]) {
|
||||
strv_free_and_replace(arg_cmdline, l);
|
||||
|
||||
if (!arg_slice) {
|
||||
arg_slice = strdup("user.slice");
|
||||
arg_slice = strdup(SPECIAL_USER_SLICE);
|
||||
if (!arg_slice)
|
||||
return log_oom();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user