diff options
author | Sam Bingner <sam@bingner.com> | 2018-10-12 16:38:39 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2018-10-12 16:38:39 -1000 |
commit | ab753fcde40b28248172c552ce2b1f23eddfc9f4 (patch) | |
tree | 2ff2724ef77294878f91b528843a0f0b6dba5462 /data/sudo | |
parent | 295030d5719c3af352cfc5394b8ce13e3a1e0fb9 (diff) |
Update more packages
Diffstat (limited to 'data/sudo')
-rw-r--r-- | data/sudo/make.sh | 2 | ||||
-rw-r--r-- | data/sudo/platformize.diff | 3 |
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 |