From 6093b2bb05f314b7f8bcf50b2a55d8e0713e96d0 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 7 Aug 2019 12:34:29 +0200 Subject: [PATCH] user-util: export is_nologin_shell() so that we can use it elsewhere --- src/basic/user-util.c | 2 +- src/basic/user-util.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.47.3