2020-03-01 | Paul Boddie | raw files shortlog changelog graph | Fixed variable type preventing correct mountpoint match testing. Since the result from the match_path method is signed, the variable used to test the result also needed to be signed. | |
server/src/main.cc (file) |
1.1 --- a/server/src/main.cc Sun Dec 01 19:09:59 2019 +0100 1.2 +++ b/server/src/main.cc Sun Mar 01 21:04:55 2020 +0100 1.3 @@ -222,7 +222,7 @@ 1.4 1.5 MountTableIterator it, found = _servers.end(), 1.6 limit = _servers.upper_bound(path); 1.7 - size_t length, longest = 0; 1.8 + ssize_t length, longest = 0; 1.9 1.10 /* Find the largest matching path. */ 1.11