Lines Matching refs:src
49 std::string CanonicalizeSpecPath(const char* src)
51 if (src == nullptr) {
54 } else if (strlen(src) >= PATH_MAX) {
55 HLOGE("Error: CanonicalizeSpecPath %s failed", src);
60 if (!_fullpath(resolvedPath, src, PATH_MAX)) {
61 HLOGE("Error: _fullpath %s failed", src);
65 if (access(src, F_OK) == 0) {
66 if (strstr(src, "/proc/") == src && strstr(src, "/data/storage") != nullptr) { // for sandbox
67 if (strncpy_s(resolvedPath, sizeof(resolvedPath), src, strlen(src)) == -1) {
68 HLOGE("Error: strncpy_s %s failed", src);
71 } else if (realpath(src, resolvedPath) == nullptr) {
72 HLOGE("Error: realpath %s failed", src);
76 std::string fileName(src);
78 if (sprintf_s(resolvedPath, PATH_MAX, "%s", src) == -1) {
79 HLOGE("Error: sprintf_s %s failed", src);
83 HLOGE("Error: find .. %s failed", src);