X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/8ebeeaa3d44c9da01694984a42c4d27215383969..4266f6b764b0c3787ded35e026ee3205ae7ee6f9:/ndk-patches/pwd.h.patch diff --git a/ndk-patches/pwd.h.patch b/ndk-patches/pwd.h.patch index 5575a19d..7fc34ee4 100644 --- a/ndk-patches/pwd.h.patch +++ b/ndk-patches/pwd.h.patch @@ -20,7 +20,7 @@ diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/pwd.h ./usr/includ + if (result == NULL || access(result, /*X_OK*/1) == -1) { + pw->pw_shell = "@TERMUX_PREFIX@/bin/bash"; + } else { -+ pw->pw_shell = result; ++ pw->pw_shell = (char*) result; + } + pw->pw_dir = "@TERMUX_HOME@"; + pw->pw_passwd = "*";