diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 20:10:10 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2007-04-30 20:10:10 +0000 |
| commit | 35e4f24d239d6367cd091b770691a821d59daae4 (patch) | |
| tree | 513f1f3bf60a5e15d0f671846fe335c5c1dc3a57 | |
| parent | fad6917924727e8e4b2ed608dd18ff6861977cd3 (diff) | |
Notes
| -rw-r--r-- | usr.bin/limits/limits.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/limits/limits.c b/usr.bin/limits/limits.c index e976f369e2ca..854803bb1517 100644 --- a/usr.bin/limits/limits.c +++ b/usr.bin/limits/limits.c @@ -399,8 +399,8 @@ main(int argc, char *argv[]) login_close(lc); /* set leading environment variables, like eval(1) */ - while (*argv && (p = strchr(*argv, '='))) - (void)setenv(*argv++, ++p, 1); + while (*argv && strchr(*argv, '=') != NULL) + (void)putenv(strdup(*argv++)); /* Set limits */ for (rcswhich = 0; rcswhich < RLIM_NLIMITS; rcswhich++) { |
