diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-01-30 14:28:10 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2018-02-02 10:35:30 +0100 |
commit | 7b1aaf6633cad80c1e59eeedaf60595a3ec1efc5 (patch) | |
tree | 336ef1589bf1329e9665597aa380e40f9325feb0 /src/basic/user-util.c | |
parent | 1b600bd522d2c01c493729cdda4bcc2e01203e98 (diff) | |
download | systemd-7b1aaf6633cad80c1e59eeedaf60595a3ec1efc5.tar.gz |
sysusers: allow the shell to be specified
This is necessary for some system users where the "login shell" is
set to a specific binary.
Diffstat (limited to 'src/basic/user-util.c')
-rw-r--r-- | src/basic/user-util.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/basic/user-util.c b/src/basic/user-util.c index 011b29ad02..db18ee31c0 100644 --- a/src/basic/user-util.c +++ b/src/basic/user-util.c @@ -645,6 +645,8 @@ bool valid_gecos(const char *d) { } bool valid_home(const char *p) { + /* Note that this function is also called by valid_shell(), any + * changes must account for that. */ if (isempty(p)) return false; |