diff options
author | Michael Biebl <biebl@debian.org> | 2019-07-18 01:24:00 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2019-07-18 12:46:35 +0200 |
commit | 6db904625d413739c480ddbe7667d3f40acc4ae0 (patch) | |
tree | 36462ca0acf0bf85407d860c55e49b032a5495a7 /src/sysusers | |
parent | ea582a0f1b052330a45b5d7bbc9fb860d1c0d98b (diff) | |
download | systemd-6db904625d413739c480ddbe7667d3f40acc4ae0.tar.gz |
meson: make nologin path build time configurable
Some distros install nologin as /usr/sbin/nologin, others as
/sbin/nologin.
Since we can't really on merged-usr everywhere (where the path wouldn't
matter), make the path build time configurable via -Dnologin-path=.
Closes #13028
Diffstat (limited to 'src/sysusers')
-rw-r--r-- | src/sysusers/sysusers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 990a2f927b..f9cb338d8a 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -361,7 +361,7 @@ static int rename_and_apply_smack(const char *temp_path, const char *dest_path) } static const char* default_shell(uid_t uid) { - return uid == 0 ? "/bin/sh" : "/sbin/nologin"; + return uid == 0 ? "/bin/sh" : NOLOGIN; } static int write_temporary_passwd(const char *passwd_path, FILE **tmpfile, char **tmpfile_path) { |