diff options
author | 2013-06-03 15:41:59 +0000 | |
---|---|---|
committer | 2013-06-03 15:41:59 +0000 | |
commit | 736a975a0c5bbc1fc2a36a2d80ba8b1d0226b49c (patch) | |
tree | f4a8d0f06fe989bbf45a9c43a78fe74c117a76b7 | |
parent | Use IF_POLL to check for available transmit descriptors before IF_DEQUEUE. (diff) | |
download | wireguard-openbsd-736a975a0c5bbc1fc2a36a2d80ba8b1d0226b49c.tar.xz wireguard-openbsd-736a975a0c5bbc1fc2a36a2d80ba8b1d0226b49c.zip |
add : to special chars.
identical diffs from plhk sdf.org and leva ecentrum.hu. ok deraadt.
-rw-r--r-- | bin/ksh/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/edit.c b/bin/ksh/edit.c index a50c3beb356..32d07147fda 100644 --- a/bin/ksh/edit.c +++ b/bin/ksh/edit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: edit.c,v 1.37 2013/01/21 10:13:24 halex Exp $ */ +/* $OpenBSD: edit.c,v 1.38 2013/06/03 15:41:59 tedu Exp $ */ /* * Command line editing - common code @@ -804,7 +804,7 @@ x_escape(const char *s, size_t len, int (*putbuf_func) (const char *, size_t)) int rval = 0; for (add = 0, wlen = len; wlen - add > 0; add++) { - if (strchr("\"#$&'()*;<=>?[\\]`{|}", s[add]) || + if (strchr("\"#$&'()*:;<=>?[\\]`{|}", s[add]) || strchr(ifs, s[add])) { if (putbuf_func(s, add) != 0) { rval = -1; |