]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
user-util: export is_nologin_shell() so that we can use it elsewhere
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Aug 2019 10:34:29 +0000 (12:34 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 4 Dec 2019 09:58:46 +0000 (10:58 +0100)
src/basic/user-util.c
src/basic/user-util.h

index 93ba4eedd2772deda7c14aa6e413e042ba8ca10f..985a669a1b1b04292f98c43cff05a4b12bcd8aee 100644 (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
index cfa515f5e8a26be33e2a354dfc206ce84d91f170..d507c135ebd8504515f865357b4498bd3386ab5b 100644 (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);