mirror of
https://github.com/espressif/openthread.git
synced 2026-08-26 04:09:52 +00:00
[posix] exit the program when creating a folder fails (#7407)
This commit is contained in:
@@ -182,7 +182,7 @@ void otPlatSettingsInit(otInstance *aInstance)
|
||||
|
||||
if (stat(OPENTHREAD_CONFIG_POSIX_SETTINGS_PATH, &st) == -1)
|
||||
{
|
||||
mkdir(OPENTHREAD_CONFIG_POSIX_SETTINGS_PATH, 0755);
|
||||
VerifyOrDie(mkdir(OPENTHREAD_CONFIG_POSIX_SETTINGS_PATH, 0755) == 0, OT_EXIT_ERROR_ERRNO);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user