mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-29 02:20:21 +00:00
[libc][unistd.h] define F_OK
This commit is contained in:
committed by
Man, Jianting (Meco)
parent
431579a166
commit
e97ba95f71
@@ -86,7 +86,7 @@ static void ulog_file_backend_flush_with_buf(struct ulog_backend *backend)
|
||||
if (be->cur_log_file_fd < 0)
|
||||
{
|
||||
/* check log file directory */
|
||||
if (access(be->cur_log_dir_path, 0) < 0)
|
||||
if (access(be->cur_log_dir_path, F_OK) < 0)
|
||||
{
|
||||
mkdir(be->cur_log_dir_path, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user