--- lbbs/src/test_file_loader.c 2025/11/19 03:12:58 1.14 +++ lbbs/src/test_file_loader.c 2025/11/20 09:02:46 1.16 @@ -17,7 +17,6 @@ #include #include #include -#include const char *files[] = { "../data/welcome.txt", @@ -31,7 +30,6 @@ int files_cnt = 6; int main(int argc, char *argv[]) { - char file_path_temp[FILE_PATH_LEN]; int i; void *p_shm; size_t data_len; @@ -39,16 +37,6 @@ int main(int argc, char *argv[]) const void *p_data; const long *p_line_offsets; - // Change current dir - strncpy(file_path_temp, argv[0], sizeof(file_path_temp) - 1); - file_path_temp[sizeof(file_path_temp) - 1] = '\0'; - - if (chdir(dirname(file_path_temp)) < 0) - { - fprintf(stderr, "chdir(%s) error: %d\n", dirname(file_path_temp), errno); - return -1; - } - if (log_begin("../log/bbsd.log", "../log/error.log") < 0) { printf("Open log error\n");