All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6ac6acc)
* Allow untrusted mrconfig files to set parameters to true/false.
So skip=true or deleted=true canbe used in an untrusted mrconfig file.
* Also allow order=N in an untrusted mrconfig file.
* README now gives a quick into to using mr.
* Brought back the "deleted" parameter, which provides an easy way to
mark repositories that should be removed.
* README now gives a quick into to using mr.
* Brought back the "deleted" parameter, which provides an easy way to
mark repositories that should be removed.
+ * Allow untrusted mrconfig files to set parameters to true/false.
+ So skip=true or deleted=true canbe used in an untrusted mrconfig file.
+ * Also allow order=N in an untrusted mrconfig file.
-- Joey Hess <joeyh@debian.org> Fri, 05 Aug 2011 13:29:21 -0400
-- Joey Hess <joeyh@debian.org> Fri, 05 Aug 2011 13:29:21 -0400
- # Untrusted files can only contain checkout
- # parameters.
- if ($parameter ne 'checkout') {
- trusterror("mr: illegal setting \"$parameter=$value\"", $f, $line, $bootstrap_url);
+ # Untrusted files can only contain a few
+ # settings in specific known-safe formats.
+ if ($parameter eq 'checkout') {
+ if (! is_trusted_checkout($value)) {
+ trusterror("mr: illegal checkout command \"$value\"", $f, $line, $bootstrap_url);
+ }
+ }
+ elsif ($parameter eq 'order') {
+ # not interpreted as a command, so
+ # safe.
- if (! is_trusted_checkout($value)) {
- trusterror("mr: illegal checkout command \"$value\"", $f, $line, $bootstrap_url);
+ elsif ($value eq 'true' || $value eq 'false') {
+ # skip=true , deleted=true etc are
+ # safe.
+ }
+ else {
+ trusterror("mr: illegal setting \"$parameter=$value\"", $f, $line, $bootstrap_url);