[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] Enable protected long option only if WORDEXP_OPTION is enabled
From: |
Roman Rakus |
Subject: |
[PATCH] Enable protected long option only if WORDEXP_OPTION is enabled |
Date: |
Fri, 14 Sep 2012 15:16:30 +0200 |
Signed-off-by: Roman Rakus <rrakus@redhat.com>
---
shell.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/shell.c b/shell.c
index 9e74f3b..87f740a 100644
--- a/shell.c
+++ b/shell.c
@@ -248,7 +248,9 @@ static const struct {
{ "noprofile", Int, &no_profile, (char **)0x0 },
{ "norc", Int, &no_rc, (char **)0x0 },
{ "posix", Int, &posixly_correct, (char **)0x0 },
+#if defined (WORDEXP_OPTION)
{ "protected", Int, &protected_mode, (char **)0x0 },
+#endif
{ "rcfile", Charp, (int *)0x0, &bashrc_file },
#if defined (RESTRICTED_SHELL)
{ "restricted", Int, &restricted, (char **)0x0 },
--
1.7.6.5
- Bash long option --protected, Roman Rakus, 2012/09/14
- [PATCH] Enable protected long option only if WORDEXP_OPTION is enabled,
Roman Rakus <=