aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2017-05-31 11:01:11 -0700
committerRob Landley <rob@landley.net>2017-06-01 01:03:13 -0500
commit51a1e91d263ad14ffd4b57ff0c22d3ff02799ceb (patch)
tree8c182a7ed7efd5f33c64ee01639fc273597bd137
parent1abba7db3df9cd4b7e86355504d39a29312ebedb (diff)
downloadtoybox-51a1e91d263ad14ffd4b57ff0c22d3ff02799ceb.tar.gz
Allow ':' in property names.
Bug: http://b/62114389 Test: setprop Change-Id: I165bcc01bb2422d991f746c5e6490cbdfb74472f
-rw-r--r--toys/android/setprop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/android/setprop.c b/toys/android/setprop.c
index c1356156..ec411f41 100644
--- a/toys/android/setprop.c
+++ b/toys/android/setprop.c
@@ -38,7 +38,7 @@ void setprop_main(void)
if (strstr(name, ".."))
error_exit("'..' is not allowed in a property name");
for (p = name; *p; ++p)
- if (!isalnum(*p) && !strchr("@_.-", *p))
+ if (!isalnum(*p) && !strchr(":@_.-", *p))
error_exit("invalid character '%c' in name '%s'", *p, name);
if (__system_property_set(name, value))