This isn't much, but it's a step in the right direction. Really we should
probably generate a trivial Android.mk for building the .c files used by
the mksh equivalent of a configure script.
Bug: 17814343
(cherry picked from commit 0e7ec74818)
Change-Id: Ibce6616acfe560c4dfec1e27c51d45b9dce8456e
This isn't much, but it's a step in the right direction. Really we should
probably generate a trivial Android.mk for building the .c files used by
the mksh equivalent of a configure script.
Change-Id: I2a6d2e2b3a3ce03fea47a8ebccabd509989fbab9
/data/local/tmp is writable by the shell user and is not
sticky (S_IXVTX). /data/local is only writable by root
(as a result, the sticky bit doesn't matter).
Change-Id: I7ea121208846c2cffe97f6316272c526b47a1813
The files in src/ are just the unmodified mksh release .tgz
and is Not a Contribution to Android, it’s the upstream code
project. ChangeLog: https://www.mirbsd.org/mksh.htm#clog
Changes, other than upstream mksh code:
• update Copyright years
• sync with moving to a different AOSP project and other AOSP changes
• mkmf.sh: add test compilation mode
• be conservative in filedescriptor usage
• don’t compile the $MirOS$ RCS IDs into the binary to save space
• enable UTF-8 mode, to match reality
• help memory leak debugging by adding -DDEBUG_LEAKS
• update rest of mkmf.sh to work with updated AOSP and mksh
• use ro.product.device property as default hostname in mkshrc
(originally submitted by John Michelau <john.michelau@motorola.com>)
• do not export PS1 in mkshrc (cross-shell developers agreed on this)
• add “more” function to mkshrc to get a simplistic pager
• add “hd” and “setenv” functions to mkshrc for better UX
• mention Launchpad as upstream bugtracker as comment in mkshrc
• change TMPDIR to /data/local/tmp for now, as /sqlite_stmt_journals is gone
(although this is still no full replacement, it’s better than before)
• address the segfaults seen by DONG-DONG YANG
Change-Id: I2d4d175bc5163b3d6f5098024f98f316fe812e55
This includes several security fixes and brings us in
line with upstream, who has included fixes for a
number of issues originally reported by the Android
team.
Change-Id: I1e0f3adf292b86fa7679b3364a774e5b6004beb8
This was originally in system/core/mksh
commit ba2627c6cdb3aaa40aebd362170c382b55b7b511
Author: Thorsten Glaser <tg@mirbsd.org>
Date: Tue Aug 24 18:21:37 2010 +0200
Add mksh from CVS 2010/08/24 as system/core/mksh module
Both shells (ash from system/core/sh, and mksh) are built by
default but only the one where $(TARGET_SHELL) is set to is
actually installed (the shell and the mkshrc configuration
file are tagged shell_mksh for this to work).
commit f41986bbc79055a4feed7266cac5c1b540296daf
Author: Jeff Hamilton <jham@android.com>
Date: Fri Sep 10 10:46:06 2010 -0500
Don't alias 'stop' to 'kill -STOP'
Android has already has a stop command used
to stop the main runtime and the alias
interferes with testing tools that expect
stop to kill the runtime.
Change-Id: I5ddf28dbd0221148d3b8f55eaf4f1e7d046c9288