Allow relative paths on rootless FilesystemProxy
When a FilesystemProxy is given an empty root path in UNRESTRICTED mode, it expects all API calls to receive absolute paths only. This constraint was imposed under the assumption that no existing LevelDB ChromiumEnv users were using relative paths (and thus creating persistent databases in the arbitrary current working directory). Well that turned out to be a bad assumption. This changes FilesystemProxy so that when given an empty root, it resolves relative paths against the current working directory. Fixed: 1071158 Change-Id: I52f48394ba65d66ebdc072d7b40951c6dfa29534 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2151311 Commit-Queue: Kevin Marshall <kmarshall@chromium.org> Reviewed-by:Kevin Marshall <kmarshall@chromium.org> Cr-Commit-Position: refs/heads/master@{#759699}
Showing
Please register or sign in to comment