{"push_id":789142692,"size":2,"distinct_size":2,"ref":"refs/heads/resolve-symlinks","head":"e127f947c64cf92245b4837669b199f51e85c69d","before":"5c1268c43964f2392cb761c952813766dfb9ee64","commits":[{"sha":"44fb6bc9e1dc75ce54dabf58e57b0a744453b849","author":{"email":"75ea6bb7bfc1186f92d26164de5f9268c9a45b59@fsi.io","name":"Henry Stern"},"message":"Add functionality to transparently resolve symbolic links.\n\nThere exist use cases where you would want bindfs to transparently\nresolve symbolic links, such as when you are creating a chroot\nenvironment with a bound fs.  This change adds an option,\n--resolve-symlinks, that modifies the behaviour of the process_path\nand bindfs_symlink functions.\n\nThe process_path function is modified to return a mutable char* that\nmust be freed.  When settings.resolve_symlinks is enabled the\nprocess_path function calls realpath on the relative path to\ntransparently resolve the symbolic link.\n\nA side effect of this change is that broken symbolic links will appear\nin directory listings but any attempt to access the file of that name\nwill return the ENOENT error code.  A subsequent commit offers an\nalternative behaviour of not resolving broken symbolic links.\n\nAll callers of process_path are modified to check the return value of\nprocess_path to make sure realpath and strdup were successful.  They\nalso free the result after use to prevent memory leakage.\n\nThe bindfs_symlink function is modified to return EPERM when\nresolve-symlinks is enabled.  This must be done to prevent access to\narbitrary files on the filesystem.","distinct":true,"url":"https://api.github.com/repos/hstern/bindfs/commits/44fb6bc9e1dc75ce54dabf58e57b0a744453b849"},{"sha":"e127f947c64cf92245b4837669b199f51e85c69d","author":{"email":"75ea6bb7bfc1186f92d26164de5f9268c9a45b59@fsi.io","name":"Henry Stern"},"message":"Don't resolve broken symbolic links.\n\nThis commit offers an alternative behaviour of not resolving broken\nsymbolic links in case returning ENOENT is undesirable behaviour.","distinct":true,"url":"https://api.github.com/repos/hstern/bindfs/commits/e127f947c64cf92245b4837669b199f51e85c69d"}]}