Searched defs: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.c203 char subpath[PATH_MAX]; local
215 if (nn >= (int)(sizeof subpath)) {
220 /* reject any '..' subpath */
229 /* copy to 'subpath', then check ownership */
230 memcpy(subpath, dataPath, nn);
231 subpath[nn] = '\0';
233 if (check_directory_ownership(subpath, AID_SYSTEM) < 0)

Completed in 60 milliseconds