summaryrefslogtreecommitdiff
path: root/busybox/busybox-1.00-rc2/busybox-suidinstall.patch
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-08-07 12:01:08 +0000
committerPhil Blundell <philb@gnu.org>2004-08-07 12:01:08 +0000
commit145cc721a2791c3e032ef18d1f96daa7f5350691 (patch)
tree0ca2e31bf2252b9b4164acda4f24b1efedb8d882 /busybox/busybox-1.00-rc2/busybox-suidinstall.patch
parentdf056f9c1d74ecf3334aec3502b0ee304be350e9 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into workhouse.nexus.co.uk:/home/pb/oe/oe-packages 2004/08/07 13:00:51+01:00 nexus.co.uk!pb update busybox back to 1.00-rc2; add McQueen patch for modprobe BKrev: 4114c484p-qOmdVHZV0prZBT4vb2jg
Diffstat (limited to 'busybox/busybox-1.00-rc2/busybox-suidinstall.patch')
-rw-r--r--busybox/busybox-1.00-rc2/busybox-suidinstall.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/busybox/busybox-1.00-rc2/busybox-suidinstall.patch b/busybox/busybox-1.00-rc2/busybox-suidinstall.patch
new file mode 100644
index 0000000000..b557c74c85
--- /dev/null
+++ b/busybox/busybox-1.00-rc2/busybox-suidinstall.patch
@@ -0,0 +1,20 @@
+diff -urNd busybox/applets/install.sh busybox-new/applets/install.sh
+--- busybox/applets/install.sh 2001-03-08 15:42:11.000000000 -0600
++++ busybox-new/applets/install.sh 2002-10-11 12:04:01.000000000 -0500
+@@ -15,10 +15,15 @@
+ fi
+ h=`sort busybox.links | uniq`
+
++if [ -n "$SUID" ]; then
++ mode=4755
++else
++ mode=0755
++fi
+
+ rm -f $prefix/bin/busybox || exit 1
+ mkdir -p $prefix/bin || exit 1
+-install -m 755 busybox $prefix/bin/busybox || exit 1
++install -m $mode busybox $prefix/bin/busybox || exit 1
+
+ for i in $h ; do
+ appdir=`dirname $i`