Home
last modified time | relevance | path

Searched refs:currpath (Results 1 – 1 of 1) sorted by relevance

/system/core/toolbox/
Dmkdir.c37 char currpath[PATH_MAX], *pathpiece; in mkdir_main() local
45 strcpy(currpath, ""); in mkdir_main()
50 strcat(currpath, "/"); in mkdir_main()
53 if(strlen(currpath) + strlen(pathpiece) + 2/*NUL and slash*/ > PATH_MAX) { in mkdir_main()
57 strcat(currpath, pathpiece); in mkdir_main()
58 strcat(currpath, "/"); in mkdir_main()
59 if(stat(currpath, &st) != 0) { in mkdir_main()
60 ret = mkdir(currpath, 0777); in mkdir_main()
62 fprintf(stderr, "mkdir failed for %s, %s\n", currpath, strerror(errno)); in mkdir_main()