From 51a1e91d263ad14ffd4b57ff0c22d3ff02799ceb Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 31 May 2017 11:01:11 -0700 Subject: Allow ':' in property names. Bug: http://b/62114389 Test: setprop Change-Id: I165bcc01bb2422d991f746c5e6490cbdfb74472f --- toys/android/setprop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys') 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)) -- cgit v1.2.3