fix the “set ±p” issue for good

cf. http://blog.cmpxchg8b.com/2013/08/security-debianisms.html
This commit is contained in:
tg
2014-06-09 12:28:19 +00:00
parent 7734e07d12
commit 129ba5c584
3 changed files with 27 additions and 31 deletions

View File

@@ -1,5 +1,5 @@
@SHFLAGS_DEFNS
__RCSID("$MirOS: src/bin/mksh/sh_flags.opt,v 1.1 2013/11/17 22:22:56 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/sh_flags.opt,v 1.2 2014/06/09 12:28:19 tg Exp $");
#define FN(sname,cname,flags,ochar) \
static const struct { \
/* character flag (if any) */ \
@@ -123,7 +123,7 @@ FN("pipefail", FPIPEFAIL, OF_ANY
>|
FN("posix", FPOSIX, OF_ANY
/* -p use suid_profile; privileged shell */
/* -p privileged shell (suid) */
>p|
FN("privileged", FPRIVILEGED, OF_ANY