Lines Matching defs:path
85 nls_safe_open(const char *path, struct stat64 *statbuf, int *trust, int safe)
101 fd = open(path, O_RDONLY);
113 * when specified as full path or when NLSPATH is known to
117 * Don't trust these files even if the path is correct.
123 * if the path is absolute and does not contain "/../",
126 if (*path == '/' && strstr(path, "/../") == NULL) {
129 * if the path belongs to the trusted system directory,
133 if (strncmp(p->dir, path, p->dirlen) == 0) {
194 * if the path does not belong to the trusted system directory