diff options
author | ache <ache@FreeBSD.org> | 2007-04-30 03:47:31 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-04-30 03:47:31 +0000 |
commit | c323ce85c0eaf14d111cdf5ef23b15e276294ea1 (patch) | |
tree | a05df9ea2e50ddf63ff3730a1860e15eb336b414 /lib/libc/stdlib/setenv.c | |
parent | 027819c292030cc1823b6a8d986682557191dda4 (diff) | |
download | FreeBSD-src-c323ce85c0eaf14d111cdf5ef23b15e276294ea1.zip FreeBSD-src-c323ce85c0eaf14d111cdf5ef23b15e276294ea1.tar.gz |
Remove special case skipping initial '=' of the setenv() value "for
compatibility with the different environment conventions" (man page).
With the standards, we don't have them different anymore and
IEEE Std 1003.1-2001 says that
"The values that the environment variables may be assigned are not
restricted except that they are considered to end with a null byte"
Diffstat (limited to 'lib/libc/stdlib/setenv.c')
-rw-r--r-- | lib/libc/stdlib/setenv.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/stdlib/setenv.c b/lib/libc/stdlib/setenv.c index 4f05f32..2695af7 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) |