diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 03:47:31 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 03:47:31 +0000 |
| commit | 00f8652278afd11c4f911ca324230f55f92b2fd9 (patch) | |
| tree | a05df9ea2e50ddf63ff3730a1860e15eb336b414 | |
| parent | 86580aa6fcb69e5a56682462273c5f8db1f4e8b6 (diff) | |
Notes
| -rw-r--r-- | lib/libc/stdlib/getenv.3 | 5 | ||||
| -rw-r--r-- | lib/libc/stdlib/setenv.c | 2 |
2 files changed, 0 insertions, 7 deletions
diff --git a/lib/libc/stdlib/getenv.3 b/lib/libc/stdlib/getenv.3 index 35547aa6b332..1882ba27911e 100644 --- a/lib/libc/stdlib/getenv.3 +++ b/lib/libc/stdlib/getenv.3 @@ -57,11 +57,6 @@ These functions set, unset and fetch environment variables from the host .Em environment list . -For compatibility with differing environment conventions, -the given argument -.Fa value -may be prepended with an equal sign -.Dq Li \&= . .Pp The .Fn getenv diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c index 4f05f3207baf..2695af77b625 100644 --- a/lib/libc/stdlib/setenv.c +++ b/lib/libc/stdlib/setenv.c @@ -61,8 +61,6 @@ setenv(name, value, rewrite) return (-1); } - if (*value == '=') /* no `=' in value */ - ++value; l_value = strlen(value); if ((c = __findenv(name, &offset))) { /* find if already exists */ if (!rewrite) |
