Lines Matching defs:strDir
409 char strDir[DIR_MAX_LEN] = {0};
410 if (strncpy_s(strDir, sizeof(strDir), dirs, strlen(dirs)) != EOK) {
414 if (strDir[nSrcLen - 1] != '/') {
419 if (strcat_s(strDir, sizeof(strDir), "/") != EOK) {
420 DHCP_LOGE("CreateDirs() strcat_s strDir:%{public}s failed!", strDir);
426 int i = (strDir[0] == '/') ? 1 : 0;
428 if (strDir[i] == '/') {
429 strDir[i] = 0;
430 if ((access(strDir, F_OK) != 0) && (mkdir(strDir, mode) != 0)) {
431 DHCP_LOGE("CreateDirs() mkdir %{public}s %{public}.4o failed:%{public}d!", strDir, mode, errno);
434 strDir[i] = '/';