summaryrefslogtreecommitdiffstats
path: root/hcid/security.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2005-08-19 15:48:55 +0000
committerMarcel Holtmann <marcel@holtmann.org>2005-08-19 15:48:55 +0000
commitad0ddadb14111da30387acce8c47459906ed0759 (patch)
treeb2ed391e047c9aabbf8a6af19b0b84f8fafb53c9 /hcid/security.c
parent50b0825682e67eb4a094261c5a0249c37bb84694 (diff)
Escape for shell meta characters
Diffstat (limited to 'hcid/security.c')
-rw-r--r--hcid/security.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hcid/security.c b/hcid/security.c
index d1aee4e2..ffc73f8e 100644
--- a/hcid/security.c
+++ b/hcid/security.c
@@ -337,6 +337,9 @@ static void call_pin_helper(int dev, bdaddr_t *sba, struct hci_conn_info *ci)
case '`':
case '$':
case '|':
+ case '>':
+ case '<':
+ case '&':
case ';':
case '\\':
*ptr++ = '\\';