MyPath
if (MyPath[0] == '\0') {
size_t size = sizeof(MyPath) - 12;
if (getcwd(MyPath, size) == 0) {
MyPath[size] = '\0';
assert(strlen(MyPath) <= size);
_nc_STRCAT(MyPath, "/trace", sizeof(MyPath));
if (_nc_is_dir_path(MyPath)) {
_nc_STRCAT(MyPath, ".log", sizeof(MyPath));
if (_nc_access(MyPath, W_OK) < 0
|| (MyFD = safe_open3(MyPath, SAFE_MODE, 0600)) < 0