commit 43b0bd60b39be0341c38ce5eafec6a1e2271ea527c903e0cfa1e86c59b1f50b6 from: Stefan Sperling date: Thu Jul 17 12:05:30 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 - 76742efcf6bd0759919b1b61a0fea3a07dd1d6841b48e6e266c525352ae7a3d1 commit + 43b0bd60b39be0341c38ce5eafec6a1e2271ea527c903e0cfa1e86c59b1f50b6 blob - 53adc987f8baf28c210fec5a79a9b137fccfd706b10cbd3a39920b06595a32d2 blob + afc3ee4ecba02ff2d632ffcac37b95cdcad233279c67df8a6ebd2c1aa579cea9 --- gotsys/gotsys.conf.5 +++ gotsys/gotsys.conf.5 @@ -269,7 +269,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 - f11e9734816079157637d23f9efb4eb38bf2beae346edacfe814c6d8cf1151bf blob + d9e3497ab62702c38c3bc41ca8c8289d9423dc544bb03bd19c9cba47d2c0e77c --- gotsys/parse.y +++ gotsys/parse.y @@ -1132,7 +1132,7 @@ int gotsys_ref_name_is_valid(char *refname) { const char *s; - const char forbidden[] = { '\'', '"', '{' , '}', '=' }; + const char forbidden[] = { '\'', '"', '{' , '}', '=', '$', '#' }; size_t i; s = refname;