From c5395f1086777d87df6c59905896194378c3bdb9 Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Thu, 28 Feb 2008 14:38:37 +0000 Subject: Installer doesn't actually take root priviledges, so I just broke bash for it. I hope they are happy. git-svn-id: http://svn.telesphoreo.org/trunk@124 514c082c-b64e-11dc-b46d-3d985efe055d --- data/bash/installer.diff | 12 ++++++++++++ data/bash/make.sh | 5 +++-- 2 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 data/bash/installer.diff (limited to 'data') 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 -- cgit v1.2.3