* environ.cc (parse_options): Remember the "no" part of any options for later

export.
This commit is contained in:
Christopher Faylor 2002-08-08 18:02:09 +00:00
parent b4f06520f4
commit 25859d7ca1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-08-08 Christopher Faylor <cgf@redhat.com>
* environ.cc (parse_options): Remember the "no" part of any options for
later export.
2002-08-07 Conrad Scott <conrad.scott@dsl.pipex.com>
* winsup.h (__check_null_invalid_struct): Make ptr argument non-const.

View File

@ -559,6 +559,7 @@ parse_options (char *buf)
p != NULL;
p = strtok_r (NULL, " \t", &lasts))
{
char *keyword_here = p;
if (!(istrue = !strncasematch (p, "no", 2)))
p += 2;
else if (!(istrue = *p != '-'))
@ -602,7 +603,7 @@ parse_options (char *buf)
*--eq = ch;
int n = eq - p;
p = strdup (p);
p = strdup (keyword_here);
if (n > 0)
p[n] = ':';
k->remember = p;