]> arthur.barton.de Git - bup.git/commit
vfs2._resolve_path: improve handling ENOTDIR, absolute paths, etc.
authorRob Browning <rlb@defaultvalue.org>
Sat, 9 Dec 2017 19:46:13 +0000 (13:46 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sat, 16 Dec 2017 23:29:23 +0000 (17:29 -0600)
commit7884c51f475b5270a6b9b54110144348fe90ad38
tree224c71423aa7b314066a1b19eebd83d72d14c352
parentacb36de7a8d89bbec0ac7487899c4846eab6fa3a
vfs2._resolve_path: improve handling ENOTDIR, absolute paths, etc.

Handle and test various path_resolution(7) cases more carefully.
e.g. ensure a trailing '/' or '/.' forces resolution, ensure a
non-final path element that's not a directory produces ENOTDIR, ...
Add tests for the these, for bad symlink handling, and a for number of
other cases.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tvfs.py
lib/bup/vfs2.py