[source] busybox: move passwd applet to /bin

LEDE Commits lede-commits at lists.infradead.org
Wed Aug 30 09:13:07 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/a3c0d5f70a0d6a466436ec090b62e9e4502449f7

commit a3c0d5f70a0d6a466436ec090b62e9e4502449f7
Author: Daniel Golle <daniel at makrotopia.org>
AuthorDate: Wed Jul 19 23:53:35 2017 +0200

    busybox: move passwd applet to /bin
    
    busybox currently installs passwd into /usr/bin which prevents its
    'full' shadow-utils variant from being installed.
    Move the passwd applet to /bin to avoid that collision.
    shadow also provides /usr/bin/login which doesn't collide with busybox
    as the busybox login applet is installed at /bin/login.
    
    Signed-off-by: Daniel Golle <daniel at makrotopia.org>
---
 .../utils/busybox/patches/510-move-passwd-applet-to-bin.patch | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/package/utils/busybox/patches/510-move-passwd-applet-to-bin.patch b/package/utils/busybox/patches/510-move-passwd-applet-to-bin.patch
new file mode 100644
index 0000000..b19d1c9
--- /dev/null
+++ b/package/utils/busybox/patches/510-move-passwd-applet-to-bin.patch
@@ -0,0 +1,11 @@
+--- a/loginutils/passwd.c
++++ b/loginutils/passwd.c
+@@ -23,7 +23,7 @@
+ //config:	  With this option passwd will refuse new passwords which are "weak".
+ 
+ //applet:/* Needs to be run by root or be suid root - needs to change /etc/{passwd,shadow}: */
+-//applet:IF_PASSWD(APPLET(passwd, BB_DIR_USR_BIN, BB_SUID_REQUIRE))
++//applet:IF_PASSWD(APPLET(passwd, BB_DIR_BIN, BB_SUID_REQUIRE))
+ 
+ //kbuild:lib-$(CONFIG_PASSWD) += passwd.o
+ 



More information about the lede-commits mailing list