| 746 | */ |
| 747 | |
| 748 | char *msTryBuildPath3(char *szReturnPath, const char *abs_path, const char *path1, const char *path2) |
| 749 | |
| 750 | { |
| 751 | FILE *fp; |
| 752 | |
| 753 | if( msBuildPath3( szReturnPath, abs_path, path1, path2 ) == NULL ) |
| 754 | return NULL; |
| 755 | |
| 756 | fp = fopen( szReturnPath, "r" ); |
| 757 | if( fp == NULL ) |
| 758 | { |
| 759 | strlcpy( szReturnPath, path2, MS_MAXPATHLEN); |
| 760 | return NULL; |
| 761 | } |
| 762 | else |
| 763 | fclose( fp ); |
| 764 | |
| 765 | return szReturnPath; |
| 766 | } |
| 767 | |
| 768 | /* |
| 769 | ** Splits a string into multiple strings based on ch. Consecutive ch's are ignored. |
no test coverage detected