/freebsd-10-stable/contrib/openpam/lib/libpam/ |
H A D | openpam_check_owner_perms.c | 104 char pathbuf[PATH_MAX]; local 111 if (realpath(path, pathbuf) == NULL) 113 len = strlen(pathbuf); 115 if (stat(pathbuf, &sb) != 0) { 118 openpam_log(PAM_LOG_ERROR, "%s: %m", pathbuf); 125 "%s: not a regular file", pathbuf); 132 "%s: insecure ownership or permissions", pathbuf); 136 while (--len > 0 && pathbuf[len] != '/') 137 pathbuf[len] = '\0';
|
/freebsd-10-stable/sbin/kldconfig/ |
H A D | kldconfig.c | 153 char pathbuf[MAXPATHLEN+1]; local 162 if (realpath(path, pathbuf) == NULL) 163 strlcpy(pathbuf, path, sizeof(pathbuf)); 165 len = strlen(pathbuf); 168 if ((len == 0) || (pathbuf[len-1] != '/')) { 169 if (len == sizeof(pathbuf) - 1) 170 errx(1, "path too long: %s", pathbuf); 171 pathbuf[len] = '/'; 175 if ((len > 0) && (pathbuf[le 213 char pathbuf[MAXPATHLEN+1]; local [all...] |
/freebsd-10-stable/lib/ncurses/ncurses/ |
H A D | termcap.c | 108 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ local 109 char *pathvec[PVECSIZ]; /* to point to names in pathbuf */ 117 p = pathbuf; 131 strncpy(pathbuf, termpath, PBUFSIZ); 134 strncpy(pathbuf, home, PBUFSIZ - 1); /* $HOME first */ 135 pathbuf[PBUFSIZ - 2] = '\0'; /* -2 because we add a slash */ 136 p += strlen(pathbuf); /* path, looking in */ 139 strncpy(p, _PATH_DEF, PBUFSIZ - (p - pathbuf)); 143 strncpy(pathbuf, cp, PBUFSIZ); /* still can be tokenized */ 147 strcpy(pathbuf, _PATH_DEF_SE [all...] |
/freebsd-10-stable/usr.sbin/pw/ |
H A D | grupd.c | 44 static char pathbuf[MAXPATHLEN]; local 46 snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file); 48 return (pathbuf);
|
H A D | pwupd.c | 48 static char pathbuf[MAXPATHLEN]; local 50 snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file); 52 return (pathbuf);
|
/freebsd-10-stable/contrib/tcsh/ |
H A D | glob.c | 465 struct strbuf pathbuf = strbuf_INIT; local 473 err = glob2(&pathbuf, pattern, pglob, no_match); 474 xfree(pathbuf.s); 484 glob2(struct strbuf *pathbuf, const Char *pattern, glob_t *pglob, int no_match) argument 498 strbuf_terminate(pathbuf); 500 if (Lstat(pathbuf->s, &sbuf)) 504 pathbuf->s[pathbuf->len - 1] != SEP) && 508 (Stat(pathbuf->s, &sbuf) == 0) && 512 strbuf_append1(pathbuf, SE 561 glob3(struct strbuf *pathbuf, const Char *pattern, const Char *restpattern, const Char *pglobstar, glob_t *pglob, int no_match) argument [all...] |
H A D | tc.os.c | 1222 char pathbuf[MAXPATHLEN]; /* temporary pathname buffer */ local 1223 char *pnptr = &pathbuf[(sizeof pathbuf)-1]; /* pathname pointer */ 1273 pnptr = strnrcpy(dirp->d_name, pnptr, pnptr - pathbuf); 1274 pnptr = strnrcpy("/", pnptr, pnptr - pathbuf); 1293 (void) chdir(strnrcpy(".", pnptr, pnptr - pathbuf)); 1308 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local 1319 pathbuf[MAXPATHLEN - 1] = '\0'; 1320 pathptr = &pathbuf[MAXPATHLEN - 1]; 1408 pathptr = strnrcpy(pathptr, d->d_name, pathptr - pathbuf); [all...] |
/freebsd-10-stable/bin/ln/ |
H A D | ln.c | 184 char pathbuf[PATH_MAX]; local 204 memcpy(pathbuf, ".", 2); 206 memcpy(pathbuf, path1, file1 - path1); 207 pathbuf[file1 - path1] = '\0'; 209 if (stat(pathbuf, &sb1) != 0) 212 memcpy(pathbuf, ".", 2); 214 memcpy(pathbuf, path2, file2 - path2); 215 pathbuf[file2 - path2] = '\0'; 217 if (stat(pathbuf, &sb2) != 0)
|
/freebsd-10-stable/crypto/heimdal/lib/roken/ |
H A D | glob.c | 496 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-10-stable/usr.bin/mail/ |
H A D | fio.c | 66 char linebuf[LINESIZE], pathbuf[PATHSIZE]; local 70 (void)snprintf(pathbuf, sizeof(pathbuf), "%s/mail.XXXXXXXXXX", tmpdir); 71 if ((c = mkstemp(pathbuf)) == -1 || (mestmp = Fdopen(c, "r+")) == NULL) 72 err(1, "can't open %s", pathbuf); 73 (void)rm(pathbuf);
|
/freebsd-10-stable/contrib/sendmail/smrsh/ |
H A D | smrsh.c | 151 char pathbuf[1000]; local 163 (void) sm_strlcpyn(pathbuf, sizeof pathbuf, 2, "PATH=", PATH); 164 newenv[0] = pathbuf;
|
/freebsd-10-stable/sbin/fsck_ffs/ |
H A D | pass2.c | 68 char pathbuf[MAXPATHLEN + 1]; local 162 getpathname(pathbuf, inp->i_number, inp->i_number); 165 "DIRECTORY", pathbuf, 169 "DIRECTORY", pathbuf, 225 getpathname(pathbuf, inp->i_parent, inp->i_number); 227 (uintmax_t)inp->i_number, pathbuf); 228 getpathname(pathbuf, inp->i_dotdot, inp->i_dotdot); 230 (uintmax_t)inp->i_dotdot, pathbuf); 231 getpathname(pathbuf, inp->i_parent, inp->i_parent); 233 (uintmax_t)inp->i_parent, pathbuf); [all...] |
H A D | dir.c | 251 char pathbuf[MAXPATHLEN + 1]; local 256 getpathname(pathbuf, cwd, ino); 258 pfatal("NAME=%s\n", pathbuf); 265 pathbuf); 267 pfatal("NAME=%s\n", pathbuf); 519 char pathbuf[MAXPATHLEN + 1]; local 538 getpathname(pathbuf, parent, parent); 540 if (expanddir(dp, pathbuf) == 0)
|
H A D | inode.c | 65 char pathbuf[MAXPATHLEN + 1]; local 92 getpathname(pathbuf, idesc->id_number, 95 pathbuf); 131 getpathname(pathbuf, idesc->id_number, 134 pathbuf); 160 char pathbuf[MAXPATHLEN + 1]; local 210 getpathname(pathbuf, idesc->id_number, 213 pathbuf);
|
/freebsd-10-stable/crypto/openssh/openbsd-compat/ |
H A D | glob.c | 612 Char pathbuf[MAXPATHLEN]; local 617 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 618 pathbuf, pathbuf+MAXPATHLEN-1, 628 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument 642 if (g_lstat(pathbuf, &sb, pglob)) 656 (g_stat(pathbuf, &sb, pglob) == 0) && 664 return(globextend(pathbuf, pglob, limitp, &sb)); 688 return(glob3(pathbuf, pathbuf_las 696 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-10-stable/lib/libc/gen/ |
H A D | glob.c | 630 Char pathbuf[MAXPATHLEN]; local 635 return (glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1, 645 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument 659 if (g_lstat(pathbuf, &sb, pglob)) 671 g_stat(pathbuf, &sb, pglob) == 0 && 681 return (globextend(pathbuf, pglob, limit, NULL)); 708 return (glob3(pathbuf, pathend, pathend_last, pattern, 715 glob3(Char *pathbuf, Cha argument [all...] |
/freebsd-10-stable/contrib/ncurses/ncurses/tinfo/ |
H A D | read_termcap.c | 778 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ local 779 char *pathvec[PVECSIZ]; /* to point to names in pathbuf */ 787 p = pathbuf; 799 _nc_str_init(&desc, pathbuf, sizeof(pathbuf)); 823 *fname++ = pathbuf; /* tokenize path into vector of names */ 1014 char pathbuf[PATH_MAX]; local 1049 (void) sprintf(pathbuf, PRIVATE_CAP, envhome); 1050 ADD_TC(pathbuf, filecount);
|
/freebsd-10-stable/cddl/contrib/opensolaris/cmd/zlook/ |
H A D | zlook.c | 273 char pathbuf[MAXPATHLEN]; local 278 (void) strlcpy(pathbuf, argv[optind], MAXPATHLEN); 279 result = pathconf(pathbuf, check); 280 (void) printf("pathconf(2) check for %s\n", pathbuf);
|
/freebsd-10-stable/sys/kern/ |
H A D | vfs_mount.c | 1100 char *pathbuf; local 1162 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); 1163 strcpy(pathbuf, fspath); 1164 error = vn_path_to_global_path(td, vp, pathbuf, MNAMELEN); 1167 error = vfs_domount_first(td, vfsp, pathbuf, vp, 1170 free(pathbuf, M_TEMP); 1195 char *pathbuf; local 1205 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); 1206 error = copyinstr(uap->path, pathbuf, MNAMELEN, NULL); 1208 free(pathbuf, M_TEM [all...] |
/freebsd-10-stable/contrib/opie/ |
H A D | opiesu.c | 105 static char pathbuf[sizeof("PATH") + sizeof(DEFAULT_PATH) - 1] = "PATH="; variable 107 static char *cleanenv[] = {userbuf, homebuf, shellbuf, pathbuf, 0, 0}; 274 strcat(pathbuf, DEFAULT_PATH);
|
/freebsd-10-stable/libexec/rtld-elf/ |
H A D | libmap.c | 402 char pathbuf[64], *s, *t; local 404 if (n < sizeof(pathbuf) - 1) 405 s = pathbuf; 411 if (s != pathbuf)
|
/freebsd-10-stable/bin/ps/ |
H A D | ps.c | 812 char pathbuf[PATH_MAX], pathbuf2[PATH_MAX], pathbuf3[PATH_MAX]; local 828 strlcpy(pathbuf, _PATH_DEV, sizeof(pathbuf)); 829 strlcat(pathbuf, elem, sizeof(pathbuf)); 830 ttypath = pathbuf; 831 if (strncmp(pathbuf, _PATH_TTY, strlen(_PATH_TTY)) == 0) 833 if (strncmp(pathbuf, _PATH_PTS, strlen(_PATH_PTS)) == 0) 835 if (strcmp(pathbuf, _PATH_CONSOLE) == 0)
|
/freebsd-10-stable/usr.bin/rpcgen/ |
H A D | rpc_main.c | 81 static char pathbuf[MAXPATHLEN + 1]; variable 1134 if (strlcpy(pathbuf, argv[i], 1135 sizeof(pathbuf)) >= sizeof(pathbuf) 1136 || strlcat(pathbuf, "/cpp", 1137 sizeof(pathbuf)) >= 1138 sizeof(pathbuf)) { 1142 CPP = pathbuf;
|
/freebsd-10-stable/lib/libdpv/ |
H A D | dpv.c | 69 static char pathbuf[PATH_MAX]; variable 577 len = snprintf(pathbuf, 580 len = snprintf(pathbuf, 583 warnx("%s:%d:%s: pathbuf[%u] too small" 589 if ((output_out = open(pathbuf, 592 warn("%s", pathbuf);
|
/freebsd-10-stable/contrib/ntp/util/ |
H A D | ntp-keygen.c | 320 char pathbuf[MAXFILENAME + 1]; local 482 if (RAND_file_name(pathbuf, sizeof(pathbuf)) == NULL) { 487 temp = RAND_load_file(pathbuf, -1); 491 pathbuf); 495 "Random seed file %s %u bytes\n", pathbuf, temp); 552 BIO_gets(bp, pathbuf, 555 if (strcmp(pathbuf, 558 else if (strcmp(pathbuf, 1968 char pathbuf[MAXFILENAM local [all...] |