On Thu, May 06, 2010 at 12:07:19PM -0300, Gustavo Zacarias wrote:
>
>The lsusb and lspci applets are installed in /sbin but regular userland
>lspci (usbutils) and lsusb (usbutils) are normally installed in /usr/sbin.

since both can be (so some degree) be run by mere users, debian puts
them both into /usr/bin, not /usr/sbin.
>
>

>>From f7c934e3734058b6ea0f719ba91d6502033d5ac7 Mon Sep 17 00:00:00 2001
>From: Gustavo Zacarias <[email protected]>
>Date: Thu, 6 May 2010 11:57:14 -0300
>Subject: [PATCH] lspci and lsusb should install in /usr/sbin to match pciutils 
>and usbutils
>
>
>Signed-off-by: Gustavo Zacarias <[email protected]>
>---
> include/applets.h |    4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
>diff --git a/include/applets.h b/include/applets.h
>index dfb20b9..021a6a1 100644
>--- a/include/applets.h
>+++ b/include/applets.h
>@@ -248,8 +248,8 @@ IF_LS(APPLET_NOEXEC(ls, ls, _BB_DIR_BIN, _BB_SUID_DROP, 
>ls))
> IF_LSATTR(APPLET(lsattr, _BB_DIR_BIN, _BB_SUID_DROP))
> IF_LSMOD(APPLET(lsmod, _BB_DIR_SBIN, _BB_SUID_DROP))
> IF_MODPROBE_SMALL(APPLET_ODDNAME(lsmod, modprobe, _BB_DIR_SBIN, 
> _BB_SUID_DROP, modprobe))
>-IF_LSPCI(APPLET(lspci, _BB_DIR_SBIN, _BB_SUID_DROP))
>-IF_LSUSB(APPLET(lsusb, _BB_DIR_SBIN, _BB_SUID_DROP))
>+IF_LSPCI(APPLET(lspci, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
>+IF_LSUSB(APPLET(lsusb, _BB_DIR_USR_SBIN, _BB_SUID_DROP))
> IF_UNLZMA(APPLET_ODDNAME(lzmacat, unlzma, _BB_DIR_USR_BIN, _BB_SUID_DROP, 
> lzmacat))
> IF_LZOP(APPLET(lzop, _BB_DIR_BIN, _BB_SUID_DROP))
> IF_LZOP(APPLET_ODDNAME(lzopcat, lzop, _BB_DIR_USR_BIN, _BB_SUID_DROP, 
> lzopcat))
>-- 
>1.6.4.4
>

>_______________________________________________
>busybox mailing list
>[email protected]
>http://lists.busybox.net/mailman/listinfo/busybox

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to