improve MKSH_NOPWNAM handling, whether MKSH_SMALL or not; it will cause

the entire ~fac/ expansion code to be omitted
This commit is contained in:
tg
2009-07-25 20:26:33 +00:00
parent 5e3aba8b00
commit bcf4080793
4 changed files with 24 additions and 15 deletions

4
main.c
View File

@ -33,7 +33,7 @@
#include <locale.h>
#endif
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.133 2009/06/11 12:42:19 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/main.c,v 1.134 2009/07/25 20:26:32 tg Exp $");
extern char **environ;
@ -141,7 +141,7 @@ main(int argc, const char *argv[])
/* set up variable and command dictionaries */
ktinit(&taliases, APERM, 0);
ktinit(&aliases, APERM, 0);
#ifndef MKSH_SMALL
#ifndef MKSH_NOPWNAM
ktinit(&homedirs, APERM, 0);
#endif