Prepend /@unixroot to rooted paths on OS/2

$UNIXROOT is a root directory of FHS on OS/2. /@unixroot is replaced by
$UNIXROOT at runtime.
This commit is contained in:
KO Myung-Hun
2015-05-09 15:45:08 +09:00
parent 0fbbbed49c
commit 89324074c4
4 changed files with 9 additions and 5 deletions

6
main.c
View File

@ -43,7 +43,7 @@ extern char **environ;
#endif
#ifndef MKSH_DEFAULT_TMPDIR
#define MKSH_DEFAULT_TMPDIR "/tmp"
#define MKSH_DEFAULT_TMPDIR UNIXROOT "/tmp"
#endif
static uint8_t isuc(const char *);
@ -323,7 +323,9 @@ main_init(int argc, const char *argv[], Source **sp, struct block **lp)
* "keeping a regular /usr"; this is supposed
* to be a sane 'basic' default PATH
*/
def_path = "/bin:/usr/bin:/sbin:/usr/sbin";
def_path = UNIXROOT "/bin" PATH_SEP_STR
UNIXROOT "/usr/bin" PATH_SEP_STR
UNIXROOT "/sbin" PATH_SEP_STR UNIXROOT "/usr/sbin";
#endif
/*