/freebsd-9.3-release/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-9.3-release/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-9.3-release/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-9.3-release/contrib/tcsh/ |
H A D | glob.c | 459 struct strbuf pathbuf = strbuf_INIT; local 467 err = glob2(&pathbuf, pattern, pglob, no_match); 468 xfree(pathbuf.s); 478 glob2(struct strbuf *pathbuf, const Char *pattern, glob_t *pglob, int no_match) argument 492 strbuf_terminate(pathbuf); 494 if (Lstat(pathbuf->s, &sbuf)) 498 pathbuf->s[pathbuf->len - 1] != SEP) && 502 (Stat(pathbuf->s, &sbuf) == 0) && 506 strbuf_append1(pathbuf, SE 555 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-9.3-release/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-9.3-release/usr.sbin/pw/ |
H A D | grupd.c | 62 static char pathbuf[MAXPATHLEN]; local 64 snprintf(pathbuf, sizeof pathbuf, "%s/%s", grpath, file); 65 return pathbuf;
|
H A D | pwupd.c | 66 static char pathbuf[MAXPATHLEN]; local 68 snprintf(pathbuf, sizeof pathbuf, "%s/%s", pwpath, file); 69 return pathbuf;
|
/freebsd-9.3-release/crypto/heimdal/lib/roken/ |
H A D | glob.c | 498 Char pathbuf[MaxPathLen+1]; local 503 return(glob2(pathbuf, pathbuf, pattern, pglob, limit)); 521 glob2(Char *pathbuf, Char *pathend, Char *pattern, glob_t *pglob, argument 535 if (g_lstat(pathbuf, &sb, pglob)) 541 (g_stat(pathbuf, &sb, pglob) == 0) && 547 return(globextend(pathbuf, pglob, limit)); 565 return(glob3(pathbuf, pathend, pattern, p, pglob, 572 glob3(Char *pathbuf, Char *pathend, Char *pattern, Char *restpattern, argument 591 if ((dirp = g_opendir(pathbuf, pglo [all...] |
/freebsd-9.3-release/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-9.3-release/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-9.3-release/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 inp->i_number, pathbuf); 228 getpathname(pathbuf, inp->i_dotdot, inp->i_dotdot); 230 pathbuf); 231 getpathname(pathbuf, inp->i_parent, inp->i_parent); 232 printf("SHOULD POINT TO I=%d (%s)", inp->i_parent, pathbuf); [all...] |
H A D | dir.c | 256 char pathbuf[MAXPATHLEN + 1]; local 261 getpathname(pathbuf, cwd, ino); 263 pfatal("NAME=%s\n", pathbuf); 270 pathbuf); 272 pfatal("NAME=%s\n", pathbuf); 524 char pathbuf[MAXPATHLEN + 1]; local 543 getpathname(pathbuf, parent, parent); 545 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-9.3-release/crypto/openssh/openbsd-compat/ |
H A D | glob.c | 611 Char pathbuf[MAXPATHLEN]; local 616 return(glob2(pathbuf, pathbuf+MAXPATHLEN-1, 617 pathbuf, pathbuf+MAXPATHLEN-1, 627 glob2(Char *pathbuf, Char *pathbuf_last, Char *pathend, Char *pathend_last, argument 641 if (g_lstat(pathbuf, &sb, pglob)) 655 (g_stat(pathbuf, &sb, pglob) == 0) && 663 return(globextend(pathbuf, pglob, limitp, &sb)); 687 return(glob3(pathbuf, pathbuf_las 695 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-9.3-release/lib/libc/gen/ |
H A D | glob.c | 562 Char pathbuf[MAXPATHLEN]; local 567 return(glob2(pathbuf, pathbuf, pathbuf + MAXPATHLEN - 1, 577 glob2(Char *pathbuf, Char *pathend, Char *pathend_last, Char *pattern, argument 591 if (g_lstat(pathbuf, &sb, pglob)) 606 (g_stat(pathbuf, &sb, pglob) == 0) && 614 return(globextend(pathbuf, pglob, limit)); 637 return(glob3(pathbuf, pathend, pathend_last, pattern, p, 644 glob3(Char *pathbuf, Cha argument [all...] |
/freebsd-9.3-release/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-9.3-release/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-9.3-release/sys/kern/ |
H A D | vfs_mount.c | 1034 char *pathbuf; local 1098 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); 1099 strcpy(pathbuf, fspath); 1100 error = vn_path_to_global_path(td, vp, pathbuf, MNAMELEN); 1103 error = vfs_domount_first(td, vfsp, pathbuf, vp, 1106 free(pathbuf, M_TEMP); 1140 char *pathbuf; local 1150 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); 1151 error = copyinstr(uap->path, pathbuf, MNAMELEN, NULL); 1153 free(pathbuf, M_TEM [all...] |
/freebsd-9.3-release/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-9.3-release/bin/ps/ |
H A D | ps.c | 810 char pathbuf[PATH_MAX], pathbuf2[PATH_MAX], pathbuf3[PATH_MAX]; local 826 strlcpy(pathbuf, _PATH_DEV, sizeof(pathbuf)); 827 strlcat(pathbuf, elem, sizeof(pathbuf)); 828 ttypath = pathbuf; 829 if (strncmp(pathbuf, _PATH_TTY, strlen(_PATH_TTY)) == 0) 831 if (strncmp(pathbuf, _PATH_PTS, strlen(_PATH_PTS)) == 0) 833 if (strcmp(pathbuf, _PATH_CONSOLE) == 0)
|
/freebsd-9.3-release/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-9.3-release/usr.bin/rpcgen/ |
H A D | rpc_main.c | 85 static char pathbuf[MAXPATHLEN + 1]; variable 1138 if (strlcpy(pathbuf, argv[i], 1139 sizeof(pathbuf)) >= sizeof(pathbuf) 1140 || strlcat(pathbuf, "/cpp", 1141 sizeof(pathbuf)) >= 1142 sizeof(pathbuf)) { 1146 CPP = pathbuf;
|
/freebsd-9.3-release/contrib/ntp/util/ |
H A D | ntp-keygen.c | 316 char pathbuf[MAXFILENAME + 1]; local 470 if (RAND_file_name(pathbuf, sizeof(pathbuf)) == NULL) { 475 temp = RAND_load_file(pathbuf, -1); 479 pathbuf); 483 "Random seed file %s %u bytes\n", pathbuf, temp); 540 BIO_gets(bp, pathbuf, 543 if (strcmp(pathbuf, 546 else if (strcmp(pathbuf, 1956 char pathbuf[MAXFILENAM local [all...] |
/freebsd-9.3-release/contrib/bmake/ |
H A D | util.c | 273 char pathbuf[MAXPATHLEN], nextpathbuf[MAXPATHLEN * 2]; local 282 pathbuf[MAXPATHLEN - 1] = '\0'; 283 pathptr = &pathbuf[MAXPATHLEN - 1];
|