Searched refs:subpath (Results 1 – 2 of 2) sorted by relevance
/system/core/toolbox/ |
D | chmod.c | 21 char *subpath = malloc(sizeof(char)*PATH_MAX); in recurse_chmod() local 33 strcpy(subpath, path); in recurse_chmod() 34 strcat(subpath, "/"); in recurse_chmod() 35 strcat(subpath, dp->d_name); in recurse_chmod() 37 if (chmod(subpath, mode) < 0) { in recurse_chmod() 38 fprintf(stderr, "Unable to chmod %s: %s\n", subpath, strerror(errno)); in recurse_chmod() 42 recurse_chmod(subpath, mode); in recurse_chmod() 44 free(subpath); in recurse_chmod()
|
/system/core/run-as/ |
D | package.c | 203 char subpath[PATH_MAX]; in check_data_path() local 215 if (nn >= (int)(sizeof subpath)) { in check_data_path() 230 memcpy(subpath, dataPath, nn); in check_data_path() 231 subpath[nn] = '\0'; in check_data_path() 233 if (check_directory_ownership(subpath, AID_SYSTEM) < 0) in check_data_path()
|