Displaying 2 results from an estimated 2 matches for "027beff".
Did you mean:
007eff
2012 Jul 02
0
[klibc:master] [SHELL] Allow building without LINEO support
...gt;
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: maximilian attems <max at stro.at>
---
usr/dash/var.c | 4 ++++
usr/dash/var.h | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/usr/dash/var.c b/usr/dash/var.c
index ecc8c90..027beff 100644
--- a/usr/dash/var.c
+++ b/usr/dash/var.c
@@ -101,7 +101,9 @@ struct var varinit[] = {
{ 0, VSTRFIXED|VTEXTFIXED, "PS2=> ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "PS4=+ ", 0 },
{ 0, VSTRFIXED|VTEXTFIXED, "OPTIND=1", getoptsreset },
+#ifdef WITH_LINENO
{...
2012 Jul 02
0
[klibc:master] [VAR] Sanitise environment variable names on entry
...t variable names
upon entry into the shell.
Signed-off-by: Herbert Xu <herbert at gondor.apana.org.au>
Signed-off-by: maximilian attems <max at stro.at>
---
usr/dash/var.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/usr/dash/var.c b/usr/dash/var.c
index 027beff..dc90249 100644
--- a/usr/dash/var.c
+++ b/usr/dash/var.c
@@ -136,7 +136,8 @@ INIT {
initvar();
for (envp = environ ; *envp ; envp++) {
- if (strchr(*envp, '=')) {
+ p = endofname(*envp);
+ if (p != *envp && *p == '=') {
setvareq(*envp, VEXPORT|VTEXTFIXED);
}...