summaryrefslogtreecommitdiff
path: root/data/sudo
diff options
context:
space:
mode:
Diffstat (limited to 'data/sudo')
-rw-r--r--data/sudo/make.sh2
-rw-r--r--data/sudo/platformize.diff3
2 files changed, 2 insertions, 3 deletions
diff --git a/data/sudo/make.sh b/data/sudo/make.sh
index a33038cb4..9dca03570 100644
--- a/data/sudo/make.sh
+++ b/data/sudo/make.sh
@@ -1,4 +1,4 @@
pkg:setup
pkg:configure sudo_cv_uid_t_len=10 sudo_cv_type_long_is_quad=no --without-pam --with-env-editor ac_cv_func_utimensat=no ac_cv_func_futimens=no
-make
+pkg:make
pkg:install
diff --git a/data/sudo/platformize.diff b/data/sudo/platformize.diff
index 44dba8964..ed730c5fd 100644
--- a/data/sudo/platformize.diff
+++ b/data/sudo/platformize.diff
@@ -24,7 +24,7 @@ diff -ur sudo-1.8.23/src/sudo.c sudo-1.8.23+iPhone/src/sudo.c
+
+ setuidptr(getpid());
+
-+ setuid(0);
++ seteuid(0);
+
+ const char *dlsym_error = dlerror();
+ if (dlsym_error) {
@@ -45,4 +45,3 @@ diff -ur sudo-1.8.23/src/sudo.c sudo-1.8.23+iPhone/src/sudo.c
int nargc, ok, status = 0;
char **nargv, **env_add;
char **user_info, **command_info, **argv_out, **user_env_out;
-Only in sudo-1.8.23+iPhone/src: sudo.c.orig