diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2015-09-13 20:28:33 +0100 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2015-09-13 20:28:33 +0100 |
commit | 9233b2b04f448d7e28bc0c36116d2ed64a4ce7d4 (patch) | |
tree | a0eae592bb51d933a71f768274e7c1200e5c567e /src/usermap.c | |
parent | 938fca9e085b5cced50800abba06b5300df5ac4c (diff) | |
download | bindfs-9233b2b04f448d7e28bc0c36116d2ed64a4ce7d4.tar.gz |
bindfs_rmdir: fix leak if lstat fails and only call it when flag is set.
bindfs_rmdir should never get called on a symlink unless
--resolve_symlinks is set (or a race condition changes the target into a
symlink). This means we can avoid the lstat if the flag is not set. This
may slightly enhance code readability too.
Diffstat (limited to 'src/usermap.c')
0 files changed, 0 insertions, 0 deletions