fix redefining FKSH functions as !FKSH (e.g. the smores change)
This commit is contained in:
parent
da085fd7d2
commit
83cde99aee
4
exec.c
4
exec.c
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#include "sh.h"
|
#include "sh.h"
|
||||||
|
|
||||||
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.172 2016/03/01 18:30:04 tg Exp $");
|
__RCSID("$MirOS: src/bin/mksh/exec.c,v 1.173 2016/04/09 16:41:07 tg Exp $");
|
||||||
|
|
||||||
#ifndef MKSH_DEFAULT_EXECSHELL
|
#ifndef MKSH_DEFAULT_EXECSHELL
|
||||||
#define MKSH_DEFAULT_EXECSHELL MKSH_UNIXROOT "/bin/sh"
|
#define MKSH_DEFAULT_EXECSHELL MKSH_UNIXROOT "/bin/sh"
|
||||||
@ -1084,7 +1084,7 @@ define(const char *name, struct op *t)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tp->flag & ALLOC) {
|
if (tp->flag & ALLOC) {
|
||||||
tp->flag &= ~(ISSET|ALLOC);
|
tp->flag &= ~(ISSET|ALLOC|FKSH);
|
||||||
tfree(tp->val.t, tp->areap);
|
tfree(tp->val.t, tp->areap);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user