summaryrefslogtreecommitdiffstats
path: root/login-utils/chsh.c
diff options
context:
space:
mode:
authorSami Kerola2011-11-13 17:47:00 +0100
committerSami Kerola2011-11-23 21:52:50 +0100
commit7299ca031dd1316d0f3e47402bf632e81ea24112 (patch)
treeca13286ecd2e9fb8dc49db1fcfe5a4357778b6ee /login-utils/chsh.c
parentchfn, chsh, setpwnam: get true/false from stdbool.h (diff)
downloadkernel-qcow2-util-linux-7299ca031dd1316d0f3e47402bf632e81ea24112.tar.gz
kernel-qcow2-util-linux-7299ca031dd1316d0f3e47402bf632e81ea24112.tar.xz
kernel-qcow2-util-linux-7299ca031dd1316d0f3e47402bf632e81ea24112.zip
chsh: build bug: do not override config.h definition
The ONLY_LISTED_SHELLS is defined by --disable-chsh-only-listed configuration option. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'login-utils/chsh.c')
-rw-r--r--login-utils/chsh.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/login-utils/chsh.c b/login-utils/chsh.c
index 043022ee6..bca161fb3 100644
--- a/login-utils/chsh.c
+++ b/login-utils/chsh.c
@@ -62,9 +62,6 @@
#include "selinux_utils.h"
#endif
-/* Only root is allowed to assign a luser a non-listed shell, by default */
-#define ONLY_LISTED_SHELLS 1
-
struct sinfo {
char *username;
char *shell;