Lines Matching refs:path

124 static boolean_t	path_valid(char *path);
165 char path[PATH_MAX];
404 * Same as pkgrm: defines the full path name of a
474 /* establish cmdbin path */
625 (void) snprintf(path, sizeof (path), "%s/pkginfo", pkgloc);
626 if ((fp = fopen(path, "r")) == NULL) {
627 progerr(ERR_PKGINFO, path);
654 * read the pkginfo file and fix any PKGSAV path - the correct
655 * install_root will be prepended to the existing path.
682 * If in host:path format or marked with the leading "//",
785 progerr(ERR_CLASSES, path);
789 /* establish path and tmpdir */
795 (void) snprintf(path, sizeof (path), "%s:%s", DEFPATH, cmdbin);
796 putparam("PATH", path);
1092 issymlink(char *path)
1097 * Obtain status of path; if symbolic link get link's status
1100 if (lstat(path, &statbuf) != 0) {
1180 /* save the path, and prepend the ir */
1182 save_path = ept->path;
1183 tmp_path = fixpath(ept->path);
1184 ept->path = tmp_path;
1189 * A path owned by more than one package is marked with
1197 echo(MSG_SHARED, ept->path);
1200 * If the path is provided to the client from a
1204 echo(MSG_SERVER, ept->path);
1208 * path name into the list.
1210 (void) fprintf(fp, "%s\n", ept->path);
1212 (lstat(ept->path, &st) == 0 && S_ISDIR(st.st_mode))) {
1215 if (rmdir(ept->path)) {
1217 echo(MSG_DIRBUSY, ept->path);
1219 echo(MSG_NOTEMPTY, ept->path);
1221 progerr(ERR_RMDIR, ept->path);
1226 echo(MSG_RMSRVR, ept->path);
1228 echo("%s", ept->path);
1244 echo(MSG_SHARED, ept->path);
1250 if (unlink(ept->path)) {
1252 progerr(ERR_RMPATH, ept->path);
1257 echo(MSG_RMSRVR, ept->path);
1259 echo("%s", ept->path);
1264 /* restore the original path */
1267 ept->path = save_path;
1358 * Description: Checks a string for being a valid path
1360 * Arguments: path - path to validate
1363 * B_FALSE means path was null, too long (>PATH_MAX),
1367 path_valid(char *path)
1369 if (path == NULL) {
1371 } else if (strlen(path) > PATH_MAX) {
1373 } else if (strlen(path) >= 1) {
1376 /* path < 1 */