Browse Source

only set suid bit when installing on target

Waldemar Brodkorb 13 years ago
parent
commit
4f0a841650

+ 1 - 1
package/busybox/config/coreutils/Config.in

@@ -590,7 +590,7 @@ config BUSYBOX_FEATURE_FANCY_SLEEP
 
 config BUSYBOX_FEATURE_FLOAT_SLEEP
 	bool "Enable fractional arguments"
-	default n
+	default y
 	depends on BUSYBOX_FEATURE_FANCY_SLEEP
 	help
 	  Allow for fractional numeric parameters.

+ 1 - 1
package/busybox/files/busybox.postinst

@@ -1,4 +1,5 @@
 #!/bin/sh
+if [ -z $IPKG_INSTROOT ];then chmod u+s /bin/busybox;fi
 . $IPKG_INSTROOT/etc/functions.sh
 add_rcconf network network YES
 add_rcconf crond crond NO
@@ -6,4 +7,3 @@ add_rcconf watchdog watchdog NO
 add_rcconf watchdog_flags watchdog_flags '-t 10 -T 20'
 add_rcconf 'use "-C32" normally, "NO" to disable' syslogd_flags '-C32'
 add_rcconf inetd inetd NO
-chmod u+s /bin/busybox

+ 1 - 2
package/sudo/files/sudo.postinst

@@ -1,3 +1,2 @@
 #!/bin/sh
-. $IPKG_INSTROOT/etc/functions.sh
-chmod u+s /usr/bin/sudo
+if [ -z $IPKG_INSTROOT ];then chmod u+s /usr/bin/sudo;fi

+ 1 - 1
package/xorg-server/files/xorg-server.postinst

@@ -1,5 +1,5 @@
 #!/bin/sh
+if [ -z $IPKG_INSTROOT ];then chmod u+s /usr/bin/X;fi
 . $IPKG_INSTROOT/etc/functions.sh
 gid=$(get_next_gid)
 add_group video $gid
-chmod u+s /usr/bin/X