| 924 | } |
| 925 | |
| 926 | static int have_same_root(const char *path1, const char *path2) |
| 927 | { |
| 928 | int is_abs1, is_abs2; |
| 929 | |
| 930 | is_abs1 = is_absolute_path(path1); |
| 931 | is_abs2 = is_absolute_path(path2); |
| 932 | return (is_abs1 && is_abs2 && tolower(path1[0]) == tolower(path2[0])) || |
| 933 | (!is_abs1 && !is_abs2); |
| 934 | } |
| 935 | |
| 936 | /* |
| 937 | * Give path as relative to prefix. |
no test coverage detected