aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-10-24 17:14:22 -0700
committerRob Landley <rob@landley.net>2016-10-24 19:54:26 -0500
commit4a17bdf4a7b4db001e9602410587be83be8bce3b (patch)
treed5cf33082a84f5ee36033f92a03cd01d79ae94c5
parent27b12381e03d4d1632893b53d906d4543e257b1d (diff)
downloadtoybox-4a17bdf4a7b4db001e9602410587be83be8bce3b.tar.gz
Android O allows '@' in property names.
Bug: http://b/32371104
-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 cbcd152b..f29a868a 100644
--- a/toys/android/setprop.c
+++ b/toys/android/setprop.c
@@ -41,7 +41,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 (property_set(name, value))