diff options
| author | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-11-22 13:50:51 +0000 |
|---|---|---|
| committer | Jilles Tjoelker <jilles@FreeBSD.org> | 2012-11-22 13:50:51 +0000 |
| commit | caf87dd65701dc23f6c7e6f61020bed902cff920 (patch) | |
| tree | 5248e482a20cfdcec54ea38dc93a4d5e8f57aca8 /bin | |
| parent | f467fffdb9b2d6e3cc680ea56cb9e27d8375b9e1 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/sh/alias.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/sh/alias.c b/bin/sh/alias.c index fb0e92294431..da995bbd4733 100644 --- a/bin/sh/alias.c +++ b/bin/sh/alias.c @@ -68,7 +68,18 @@ setalias(const char *name, const char *val) if (equal(name, ap->name)) { INTOFF; ckfree(ap->val); + /* See HACK below. */ +#ifdef notyet ap->val = savestr(val); +#else + { + size_t len = strlen(val); + ap->val = ckmalloc(len + 2); + memcpy(ap->val, val, len); + ap->val[len] = ' '; + ap->val[len+1] = '\0'; + } +#endif INTON; return; } |
