)]}'
{
  "commit": "805b5d98c649d26fc44d2d7755a97f18e62b438a",
  "tree": "b23bce9bbabd7efa1d3624a3206ef92ab48316b9",
  "parents": [
    "fff39a7ad09da07ef490de05c92c91f22f8002f2"
  ],
  "author": {
    "name": "Greg Kurz",
    "email": "groug@kaod.org",
    "time": "Tue Aug 30 19:13:11 2016 +0200"
  },
  "committer": {
    "name": "Peter Maydell",
    "email": "peter.maydell@linaro.org",
    "time": "Tue Aug 30 19:21:56 2016 +0100"
  },
  "message": "9pfs: forbid . and .. in file names\n\nAccording to the 9P spec http://man.cat-v.org/plan_9/5/open about the\ncreate request:\n\nThe names . and .. are special; it is illegal to create files with these\nnames.\n\nThis patch causes the create and lcreate requests to fail with EINVAL if\nthe file name is either \".\" or \"..\".\n\nEven if it isn\u0027t explicitly written in the spec, this patch extends the\nchecking to all requests that may cause a directory entry to be created:\n\n    - mknod\n    - rename\n    - renameat\n    - mkdir\n    - link\n    - symlink\n\nThe unlinkat request also gets patched for consistency (even if\nrmdir(\"foo/..\") is expected to fail according to POSIX.1-2001).\n\nThe various error values come from the linux manual pages.\n\nSuggested-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\nSigned-off-by: Greg Kurz \u003cgroug@kaod.org\u003e\nReviewed-by: Eric Blake \u003ceblake@redhat.com\u003e\nReviewed-by: Michael S. Tsirkin \u003cmst@redhat.com\u003e\nSigned-off-by: Peter Maydell \u003cpeter.maydell@linaro.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "385269ea0ac3352f07b103f6b71fb670b69bb0e3",
      "old_mode": 33188,
      "old_path": "hw/9pfs/9p.c",
      "new_id": "51c6f9883bf8767df9e07f858da0a73f0b51d482",
      "new_mode": 33188,
      "new_path": "hw/9pfs/9p.c"
    }
  ]
}
