[git commit] nologin: Install applet to /sbin instead of /usr/sbin

Denys Vlasenko vda.linux at googlemail.com
Mon Oct 12 10:34:42 UTC 2026


commit: https://git.busybox.net/busybox/commit/?id=ec9036610fbb9a9015234eec55404c9bf3f31fb9
branch: https://git.busybox.net/busybox/log/?h=master

This is required to retain compatibility with our old custom nologin
applet written in C which was also installed to /sbin.

Compatibility with the old path is required because login shell paths
are hardcoded in /etc/passwd.

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 util-linux/nologin.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util-linux/nologin.c b/util-linux/nologin.c
index 5a8b047a5..d3b6fe77e 100644
--- a/util-linux/nologin.c
+++ b/util-linux/nologin.c
@@ -19,7 +19,7 @@
 //config:	If you know these will be available externally you can
 //config:	disable this option.
 
-//applet:IF_NOLOGIN(APPLET_SCRIPTED(nologin, scripted, BB_DIR_USR_SBIN, BB_SUID_DROP, nologin))
+//applet:IF_NOLOGIN(APPLET_SCRIPTED(nologin, scripted, BB_DIR_SBIN, BB_SUID_DROP, nologin))
 
 //usage:#define nologin_trivial_usage
 //usage:	""


More information about the busybox-cvs mailing list