# HG changeset patch # User Matti Hamalainen # Date 1531110525 -10800 # Node ID 256002aa06ccab6e98c7a25fb6a7a4ac997f14a9 # Parent fc79f5f4b4d6efe2e4a0d0fa49ceeed2ffade55e Changed to conform to new th_stat_path() API. diff -r fc79f5f4b4d6 -r 256002aa06cc main.c --- a/main.c Mon Jul 09 06:11:30 2018 +0300 +++ b/main.c Mon Jul 09 07:28:45 2018 +0300 @@ -2087,17 +2087,17 @@ if (optLogEnable) { - int flags; - if (th_stat_path(optLogPath, &flags)) + th_stat_data sdata; + if (th_stat_path(optLogPath, &sdata)) { - if ((flags & TH_IS_DIR) == 0) + if ((sdata.flags & TH_IS_DIR) == 0) { THERR("The log file path '%s' is not a directory.\n", optLogPath); goto err_exit; } else - if ((flags & TH_IS_WRITABLE) == 0) + if ((sdata.flags & TH_IS_WRITABLE) == 0) { #ifdef TH_PLAT_WINDOWS if (!th_mkdir_path(optLogPath, 0))