user-util: export is_nologin_shell() so that we can use it elsewhere

This commit is contained in:
Lennart Poettering
2019-12-04 10:58:46 +01:00
parent 53caaffdf4
commit 6093b2bb05
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -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
+2
View File
@@ -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);