commit d8c5a49979cbd72335d978f164c33aae604754d6 from: Stefan Sperling via: Thomas Adam date: Tue Jul 22 08:17:38 2025 UTC forbid the '$' and '#' symbols in gotsys.conf reference names These symbols are also part of configuration file syntax and should therefore be avoided. commit - c686c19fa4fbfbe89d59b19a92dd67b189b36702 commit + d8c5a49979cbd72335d978f164c33aae604754d6 blob - cec65eda82e8d094fe8f08ce8e1d20cca8bcc38b blob + 68b3cdf4b5d8d53e812ddef4196adf3ae0ebbf34 --- gotsys/gotsys.conf.5 +++ gotsys/gotsys.conf.5 @@ -271,7 +271,9 @@ are non-empty UTF-8 strings with the following disallo \' (single quote), { (opening curly brace), } (closing curly brace), -= (equal sign). += (equal sign), +# (hash), +$ (doller sign). The name may not be the string .Dq @ , may not begin with a / (slash), and may not begin or end blob - bddef6d8953e3a78b7c1f65ddf31d79b77773d82 blob + b39d9501ba290cd72e72747e8f31970ce5e09ec4 --- gotsys/parse.y +++ gotsys/parse.y @@ -1072,7 +1072,7 @@ int gotsys_ref_name_is_valid(char *refname) { const char *s; - const char forbidden[] = { '\'', '"', '{' , '}', '=' }; + const char forbidden[] = { '\'', '"', '{' , '}', '=', '$', '#' }; size_t i; s = refname;