Add an extra test to prevent 'PBD::path_is_within()' from looping infinitely on Windows
authorJohn Emmas <johne53@tiscali.co.uk>
Tue, 3 Feb 2015 11:57:38 +0000 (11:57 +0000)
committerJohn Emmas <johne53@tiscali.co.uk>
Tue, 3 Feb 2015 11:57:38 +0000 (11:57 +0000)
commit2689848ed796dfc070da96c215e31add06577226
treec8d4f1c00070339f1bb9499bf5825d0d8e8e8438
parent23622f4fba03be848ffeb80a98d340d555da7a74
Add an extra test to prevent 'PBD::path_is_within()' from looping infinitely on Windows

The infinite loop would happen if the 2 supplied paths were on different Windows drives - for example if one was on drive C:\ and the other on drive E:\

I don't think this new test will be detrimental to the other platforms but if it is, we could easily separate it out with a '#ifdef PLATFORM_WINDOWS' directive.
libs/pbd/file_utils.cc