Skip to content

Commit

Permalink
[CBRD-24389] Fix for creating DIR for ADMIN_LOG_FILE, in Windows (CUB…
Browse files Browse the repository at this point in the history
…RID#4095)

fix the problem that the directory for ADMIN_LOG_FILE was not created in Windows
  • Loading branch information
kisoo-han authored Feb 9, 2023
1 parent f2856af commit 2c87b38
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/broker/broker_admin_pub.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,17 @@ admin_start_cmd (T_BROKER_INFO * br_info, int br_num, int master_shm_id, bool ac

if (admin_log_file != NULL)
{
admin_log2 = strdup (admin_log_file);
char buf[BROKER_PATH_MAX];

#if defined (WINDOWS)
admin_log2 = _fullpath (buf, admin_log_file, BROKER_PATH_MAX);
#else
admin_log2 = admin_log_file;
#endif /* WINDOWS */

if (admin_log2)
{
broker_create_dir (dirname (admin_log2));
free (admin_log2);
}
}

Expand Down

0 comments on commit 2c87b38

Please sign in to comment.