Lines Matching defs:path
67 const char *bp, *path, *p;
71 /* "" is not a valid filename; check this before traversing PATH. */
77 /* If it's an absolute or relative path name, it's easy. */
80 path = "";
85 /* Get the path we're searching. */
86 if (!(path = getenv("PATH")))
87 path = _PATH_DEFPATH;
90 /* Find the end of this path element. */
91 for (p = path; *path != 0 && *path != ':'; path++)
94 * It's a SHELL path -- double, leading and trailing colons
97 if (p == path) {
101 lp = path - p;
104 * If the path is too long complain. This is a possible
105 * security issue; given a way to make the path too long
111 (void)write(STDERR_FILENO, ": path too long\n", 16);
148 } while (*path++ == ':'); /* Otherwise, *path was NUL */