summaryrefslogtreecommitdiff
path: root/data/bash
diff options
context:
space:
mode:
Diffstat (limited to 'data/bash')
-rw-r--r--data/bash/installer.diff12
-rw-r--r--data/bash/make.sh5
2 files changed, 15 insertions, 2 deletions
diff --git a/data/bash/installer.diff b/data/bash/installer.diff
new file mode 100644
index 000000000..3c229e5ae
--- /dev/null
+++ b/data/bash/installer.diff
@@ -0,0 +1,12 @@
+diff -r -u bash-3.2/flags.c bash-3.2+iPhone/flags.c
+--- bash-3.2/flags.c 2004-07-17 01:19:42.000000000 +0000
++++ bash-3.2+iPhone/flags.c 2008-02-28 14:34:30.000000000 +0000
+@@ -146,7 +146,7 @@
+ is required if the shell is to run setuid. If the `-p' option is
+ not supplied at startup, and the real and effective uids or gids
+ differ, disable_priv_mode is called to relinquish setuid status. */
+-int privileged_mode = 0;
++int privileged_mode = 1;
+
+ #if defined (BRACE_EXPANSION)
+ /* Zero means to disable brace expansion: foo{a,b} -> fooa foob */
diff --git a/data/bash/make.sh b/data/bash/make.sh
index 2b5f49059..06ce94e10 100644
--- a/data/bash/make.sh
+++ b/data/bash/make.sh
@@ -1,5 +1,6 @@
-tar -zxvf "${PKG_DATA}/bash-3.2.tar.gz"
-cd bash-3.2
+pkg:extract
+cd *
+pkg:patch
pkg:configure bash_cv_dev_fd=absent bash_cv_sys_named_pipes=present bash_cv_job_control_missing=missing
make
pkg:install