Lines Matching defs:curPath
50 char curPath[DEFAULT_PATH_LEN] = { 0 };
52 ret = strcpy_s(curPath, DEFAULT_PATH_LEN, path);
56 ret = strcat_s(curPath, DEFAULT_PATH_LEN, "/");
60 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name);
65 ret = chown(curPath, HUKS_SERVICE_UID, HUKS_SERVICE_UID);
70 if (chmod(curPath, S_IRUSR | S_IWUSR) < 0) {
74 if (chmod(curPath, S_IRWXU) < 0) {
77 ChangeDirAndFilesPerm(curPath);
115 static int ConstructSrcAndTargetPath(char *curPath, char *desPath, struct dirent *ptr,
118 int ret = strcpy_s(curPath, DEFAULT_PATH_LEN, srcPath);
122 ret = strcat_s(curPath, DEFAULT_PATH_LEN, "/");
127 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name);
163 char curPath[DEFAULT_PATH_LEN] = { 0 };
166 ret = ConstructSrcAndTargetPath(curPath, desPath, ptr, srcPath, tarPath);
172 MoveOldFolderToNew(curPath, desPath);
174 MoveOldFileToNew(curPath, desPath);