| 968 | } |
| 969 | |
| 970 | static bool verify_appdir(const char *appdir) |
| 971 | { |
| 972 | /* Does this directory exist? */ |
| 973 | |
| 974 | snprintf(g_buffer, BUFFER_SIZE, "%s%c%s", g_topdir, g_delim, appdir); |
| 975 | debug("verify_appdir: Checking apppath=%s\n", g_buffer); |
| 976 | if (verify_optiondir(g_buffer)) |
| 977 | { |
| 978 | /* Yes.. Use this application directory path */ |
| 979 | |
| 980 | g_appdir = strdup(appdir); |
| 981 | g_apppath = strdup(g_buffer); |
| 982 | return true; |
| 983 | } |
| 984 | |
| 985 | debug("verify_appdir: apppath=%s does not exist\n", g_buffer); |
| 986 | return false; |
| 987 | } |
| 988 | |
| 989 | static void check_appdir(void) |
| 990 | { |
no test coverage detected