From: Lennart Poettering Date: Wed, 7 Aug 2019 10:34:29 +0000 (+0200) Subject: user-util: export is_nologin_shell() so that we can use it elsewhere X-Git-Tag: v245-rc1~314^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6093b2bb05f314b7f8bcf50b2a55d8e0713e96d0;p=thirdparty%2Fsystemd.git user-util: export is_nologin_shell() so that we can use it elsewhere --- diff --git a/src/basic/user-util.c b/src/basic/user-util.c index 93ba4eedd27..985a669a1b1 100644 --- a/src/basic/user-util.c +++ b/src/basic/user-util.c @@ -84,7 +84,7 @@ char *getusername_malloc(void) { return uid_to_name(getuid()); } -static bool is_nologin_shell(const char *shell) { +bool is_nologin_shell(const char *shell) { return PATH_IN_SET(shell, /* 'nologin' is the friendliest way to disable logins for a user account. It prints a nice diff --git a/src/basic/user-util.h b/src/basic/user-util.h index cfa515f5e8a..d507c135ebd 100644 --- a/src/basic/user-util.h +++ b/src/basic/user-util.h @@ -127,3 +127,5 @@ int putsgent_sane(const struct sgrp *sg, FILE *stream); #endif int make_salt(char **ret); + +bool is_nologin_shell(const char *shell);