Imported from ../bash-3.0.tar.gz.
This commit is contained in:
parent
7117c2d221
commit
b80f6443b6
400 changed files with 69247 additions and 13346 deletions
|
|
@ -115,7 +115,7 @@ putenv (str)
|
|||
return -1;
|
||||
}
|
||||
|
||||
offset = assignment (str);
|
||||
offset = assignment (str, 0);
|
||||
if (str[offset] != '=')
|
||||
{
|
||||
errno = EINVAL;
|
||||
|
|
@ -169,7 +169,7 @@ setenv (name, value, rewrite)
|
|||
}
|
||||
|
||||
var = 0;
|
||||
v = value;
|
||||
v = (char *)value; /* some compilers need explicit cast */
|
||||
/* XXX - should we worry about readonly here? */
|
||||
if (rewrite == 0)
|
||||
var = find_variable (name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue