Searched refs:subpath (Results 1 - 2 of 2) sorted by relevance

/system/core/toolbox/
H A Dchmod.c21 char *subpath = malloc(sizeof(char)*PATH_MAX); local
33 strcpy(subpath, path);
34 strcat(subpath, "/");
35 strcat(subpath, dp->d_name);
37 if (chmod(subpath, mode) < 0) {
38 fprintf(stderr, "Unable to chmod %s: %s\n", subpath, strerror(errno));
42 recurse_chmod(subpath, mode);
44 free(subpath);
/system/core/run-as/
H A Dpackage.c224 char subpath[PATH_MAX]; local
236 if (nn >= (int)(sizeof subpath)) {
241 /* reject any '..' subpath */
250 /* copy to 'subpath', then check ownership */
251 memcpy(subpath, dataPath, nn);
252 subpath[nn] = '\0';
254 if (check_directory_ownership(subpath, AID_SYSTEM) < 0)

Completed in 58 milliseconds