Searched refs:pathbuf (Results 1 - 25 of 34) sorted by relevance

12

/freebsd-current/contrib/openpam/lib/libpam/
H A Dopenpam_check_owner_perms.c102 char pathbuf[PATH_MAX]; local
109 if (realpath(path, pathbuf) == NULL)
111 len = strlen(pathbuf);
113 if (stat(pathbuf, &sb) != 0) {
116 openpam_log(PAM_LOG_ERROR, "%s: %m", pathbuf);
123 "%s: not a regular file", pathbuf);
130 "%s: insecure ownership or permissions", pathbuf);
134 while (--len > 0 && pathbuf[len] != '/')
135 pathbuf[len] = '\0';
/freebsd-current/sbin/kldconfig/
H A Dkldconfig.c143 char pathbuf[MAXPATHLEN+1]; local
152 if (realpath(path, pathbuf) == NULL)
153 strlcpy(pathbuf, path, sizeof(pathbuf));
155 len = strlen(pathbuf);
157 if ((len > 0) && (pathbuf[len-1] == '/'))
158 pathbuf[--len] = '\0';
162 if (!strcmp(pe->path, pathbuf))
167 errx(1, "already in the module search path: %s", pathbuf);
172 ((pe->path = strdup(pathbuf))
194 char pathbuf[MAXPATHLEN+1]; local
[all...]
/freebsd-current/usr.sbin/pw/
H A Dgrupd.c41 static char pathbuf[MAXPATHLEN]; local
43 snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file);
45 return (pathbuf);
H A Dpwupd.c45 static char pathbuf[MAXPATHLEN]; local
47 snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file);
49 return (pathbuf);
/freebsd-current/contrib/tcsh/
H A Dglob.c468 struct strbuf pathbuf = strbuf_INIT; local
476 err = glob2(&pathbuf, pattern, pglob, no_match);
477 xfree(pathbuf.s);
487 glob2(struct strbuf *pathbuf, const Char *pattern, glob_t *pglob, int no_match) argument
501 strbuf_terminate(pathbuf);
503 if (Lstat(pathbuf->s, &sbuf))
507 pathbuf->s[pathbuf->len - 1] != SEP) &&
511 (Stat(pathbuf->s, &sbuf) == 0) &&
515 strbuf_append1(pathbuf, SE
564 glob3(struct strbuf *pathbuf, const Char *pattern, const Char *restpattern, const Char *pglobstar, glob_t *pglob, int no_match) argument
[all...]
H A Dtc.os.c1218 char pathbuf[MAXPATHLEN]; /* temporary pathname buffer */ local
1219 char *pnptr = &pathbuf[(sizeof pathbuf)-1]; /* pathname pointer */
1269 pnptr = strnrcpy(dirp->d_name, pnptr, pnptr - pathbuf);
1270 pnptr = strnrcpy("/", pnptr, pnptr - pathbuf);
1289 (void) chdir(strnrcpy(".", pnptr, pnptr - pathbuf));
1304 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local
1315 pathbuf[MAXPATHLEN - 1] = '\0';
1316 pathptr = &pathbuf[MAXPATHLEN - 1];
1404 pathptr = strnrcpy(pathptr, d->d_name, pathptr - pathbuf);
[all...]
/freebsd-current/bin/ln/
H A Dln.c177 char pathbuf[PATH_MAX]; local
197 memcpy(pathbuf, ".", 2);
199 memcpy(pathbuf, path1, file1 - path1);
200 pathbuf[file1 - path1] = '\0';
202 if (stat(pathbuf, &sb1) != 0)
205 memcpy(pathbuf, ".", 2);
207 memcpy(pathbuf, path2, file2 - path2);
208 pathbuf[file2 - path2] = '\0';
210 if (stat(pathbuf, &sb2) != 0)
/freebsd-current/crypto/heimdal/lib/roken/
H A Dglob.c496 Char pathbuf[MaxPathLen+1]; local
501 return(glob2(pathbuf, pathbuf, pattern, pglob, limit));
519 glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob, argument
533 if (g_lstat(pathbuf, &sb, pglob))
539 (g_stat(pathbuf, &sb, pglob) == 0) &&
545 return(globextend(pathbuf, pglob, limit));
563 return(glob3(pathbuf, pathend, pattern, p, pglob,
570 glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, argument
589 if ((dirp = g_opendir(pathbuf, pglo
[all...]
/freebsd-current/usr.bin/mail/
H A Dfio.c60 char linebuf[LINESIZE], pathbuf[PATHSIZE]; local
64 (void)snprintf(pathbuf, sizeof(pathbuf), "%s/mail.XXXXXXXXXX", tmpdir);
65 if ((c = mkstemp(pathbuf)) == -1 || (mestmp = Fdopen(c, "r+")) == NULL)
66 err(1, "can't open %s", pathbuf);
67 (void)rm(pathbuf);
/freebsd-current/contrib/sendmail/smrsh/
H A Dsmrsh.c151 char pathbuf[1000]; local
163 (void) sm_strlcpyn(pathbuf, sizeof pathbuf, 2, "PATH=", PATH);
164 newenv[0] = pathbuf;
/freebsd-current/sbin/fsck_ffs/
H A Dpass2.c63 char pathbuf[MAXPATHLEN + 1]; local
162 getpathname(pathbuf, inp->i_number, inp->i_number);
165 "DIRECTORY", pathbuf,
169 "DIRECTORY", pathbuf,
227 getpathname(pathbuf, inp->i_parent, inp->i_number);
229 (uintmax_t)inp->i_number, pathbuf);
230 getpathname(pathbuf, inp->i_dotdot, inp->i_dotdot);
232 (uintmax_t)inp->i_dotdot, pathbuf);
233 getpathname(pathbuf, inp->i_parent, inp->i_parent);
235 (uintmax_t)inp->i_parent, pathbuf);
[all...]
H A Ddir.c429 char pathbuf[MAXPATHLEN + 1]; local
440 getpathname(pathbuf, cwd, ino);
444 pathbuf);
446 pfatal("NAME=%s\n", pathbuf);
738 char pathbuf[MAXPATHLEN + 1]; local
761 getpathname(pathbuf, parent, parent);
762 if (expanddir(&ip, pathbuf) == 0) {
/freebsd-current/contrib/ncurses/ncurses/tinfo/
H A Dread_termcap.c793 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ local
794 CGETENT_CONST char *pathvec[PVECSIZ]; /* point to names in pathbuf */
800 p = pathbuf;
812 _nc_str_init(&desc, pathbuf, sizeof(pathbuf));
837 *fname++ = pathbuf; /* tokenize path into vector of names */
1038 char pathbuf[PATH_MAX]; local
1073 _nc_SPRINTF(pathbuf, _nc_SLIMIT(sizeof(pathbuf))
1075 ADD_TC(pathbuf, filecoun
[all...]
/freebsd-current/crypto/openssh/openbsd-compat/
H A Dglob.c616 Char pathbuf[PATH_MAX]; local
621 return(glob2(pathbuf, pathbuf+PATH_MAX-1,
622 pathbuf, pathbuf+PATH_MAX-1,
632 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument
654 if (g_lstat(pathbuf, &sb, pglob))
660 (g_stat(pathbuf, &sb, pglob) == 0) &&
668 return(globextend(pathbuf, pglob, limitp, &sb));
692 return(glob3(pathbuf, pathbuf_las
700 glob3(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, Char *pattern, Char *restpattern, Char *restpattern_last, glob_t *pglob, struct glob_lim *limitp) argument
[all...]
/freebsd-current/lib/libc/gen/
H A Dglob-compat11.c593 Char pathbuf[MAXPATHLEN]; local
598 return (glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1,
608 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument
622 if (g_lstat(pathbuf, &sb, pglob))
634 g_stat(pathbuf, &sb, pglob) == 0 &&
644 return (globextend(pathbuf, pglob, limit, NULL));
671 return (glob3(pathbuf, pathend, pathend_last, pattern,
678 glob3(Char *pathbuf, Cha argument
[all...]
H A Dglob.c626 Char pathbuf[MAXPATHLEN]; local
631 return (glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1,
641 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument
655 if (g_lstat(pathbuf, &sb, pglob))
667 g_stat(pathbuf, &sb, pglob) == 0 &&
677 return (globextend(pathbuf, pglob, limit, NULL));
704 return (glob3(pathbuf, pathend, pathend_last, pattern,
711 glob3(Char *pathbuf, Cha argument
[all...]
/freebsd-current/libexec/rtld-elf/
H A Dlibmap.c412 char pathbuf[64], *s, *t; local
414 if (n < sizeof(pathbuf) - 1)
415 s = pathbuf;
421 if (s != pathbuf)
/freebsd-current/usr.bin/rpcgen/
H A Drpc_main.c72 static char pathbuf[MAXPATHLEN + 1]; variable
1227 if (strlcpy(pathbuf, argv[i],
1228 sizeof(pathbuf)) >= sizeof(pathbuf)
1229 || strlcat(pathbuf, "/cpp",
1230 sizeof(pathbuf)) >=
1231 sizeof(pathbuf)) {
1235 CPP = pathbuf;
/freebsd-current/lib/libdpv/
H A Ddpv.c67 static char pathbuf[PATH_MAX]; variable
575 len = snprintf(pathbuf,
578 len = snprintf(pathbuf,
581 warnx("%s:%d:%s: pathbuf[%u] too small"
587 if ((output_out = open(pathbuf,
590 warn("%s", pathbuf);
/freebsd-current/contrib/ntp/util/
H A Dntp-keygen.c324 char pathbuf[MAXFILENAME + 1]; local
486 if (RAND_file_name(pathbuf, sizeof(pathbuf)) == NULL) {
491 temp = RAND_load_file(pathbuf, -1);
495 pathbuf);
499 "Random seed file %s %u bytes\n", pathbuf, temp);
556 BIO_gets(bp, pathbuf,
559 if (strcmp(pathbuf,
562 else if (strcmp(pathbuf,
1987 char pathbuf[MAXFILENAM local
[all...]
/freebsd-current/sys/contrib/openzfs/cmd/zed/agents/
H A Dzfs_mod.c208 char pathbuf[PATH_MAX]; local
383 if (realpath(rawpath, pathbuf) == NULL && !is_mpath_wholedisk) {
443 leafname = strrchr(pathbuf, '/') + 1;
521 (void) snprintf(pathbuf, sizeof (pathbuf), "%s%s",
524 "replaced by '%s'", path, pathbuf);
525 path = pathbuf;
/freebsd-current/bin/ps/
H A Dps.c876 char pathbuf[PATH_MAX], pathbuf2[PATH_MAX], pathbuf3[PATH_MAX]; local
892 strlcpy(pathbuf, _PATH_DEV, sizeof(pathbuf));
893 strlcat(pathbuf, elem, sizeof(pathbuf));
894 ttypath = pathbuf;
895 if (strncmp(pathbuf, _PATH_TTY, strlen(_PATH_TTY)) == 0)
897 if (strncmp(pathbuf, _PATH_PTS, strlen(_PATH_PTS)) == 0)
899 if (strcmp(pathbuf, _PATH_CONSOLE) == 0)
/freebsd-current/contrib/mtree/
H A Dspec.c436 static char pathbuf[4*MAXPATHLEN + 1]; local
439 strsvis(pathbuf, path, VIS_CSTYLE, extra);
441 strsvis(pathbuf, path, VIS_OCTAL, extra_glob);
442 return pathbuf;
/freebsd-current/sys/kern/
H A Dvfs_mount.c1596 char *pathbuf; local
1672 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK);
1673 strcpy(pathbuf, fspath);
1680 error = vn_path_to_global_path(td, vp, pathbuf,
1684 nd.ni_dvp, pathbuf, MNAMELEN,
1687 error = vfs_domount_first(td, vfsp, pathbuf, vp,
1690 free(pathbuf, M_TEMP);
1727 char *fsidbuf, *pathbuf; local
1759 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK);
1760 error = copyinstr(path, pathbuf, MNAMELE
[all...]
/freebsd-current/contrib/bmake/
H A Dutil.c241 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local
250 pathbuf[MAXPATHLEN - 1] = '\0';
251 pathptr = &pathbuf[MAXPATHLEN - 1];

Completed in 609 milliseconds

12