/freebsd-11.0-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-11.0-release/sbin/kldconfig/ |
H A D | kldconfig.c | 144 char pathbuf[MAXPATHLEN+1]; local 153 if (realpath(path, pathbuf) == NULL) 154 strlcpy(pathbuf, path, sizeof(pathbuf)); 156 len = strlen(pathbuf); 158 if ((len > 0) && (pathbuf[len-1] == '/')) 159 pathbuf[--len] = '\0'; 163 if (!strcmp(pe->path, pathbuf)) 168 errx(1, "already in the module search path: %s", pathbuf); 173 ((pe->path = strdup(pathbuf)) 195 char pathbuf[MAXPATHLEN+1]; local [all...] |
/freebsd-11.0-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-11.0-release/usr.sbin/pw/ |
H A D | grupd.c | 43 static char pathbuf[MAXPATHLEN]; local 45 snprintf(pathbuf, sizeof pathbuf, "%s/%s", conf.etcpath, file); 47 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-11.0-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-11.0-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-11.0-release/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-11.0-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-11.0-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-11.0-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, 223 getpathname(pathbuf, inp->i_parent, inp->i_number); 225 (uintmax_t)inp->i_number, pathbuf); 226 getpathname(pathbuf, inp->i_dotdot, inp->i_dotdot); 228 (uintmax_t)inp->i_dotdot, pathbuf); 229 getpathname(pathbuf, inp->i_parent, inp->i_parent); 231 (uintmax_t)inp->i_parent, pathbuf); [all...] |
H A D | dir.c | 252 char pathbuf[MAXPATHLEN + 1]; local 257 getpathname(pathbuf, cwd, ino); 259 pfatal("NAME=%s\n", pathbuf); 266 pathbuf); 268 pfatal("NAME=%s\n", pathbuf); 520 char pathbuf[MAXPATHLEN + 1]; local 539 getpathname(pathbuf, parent, parent); 541 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-11.0-release/contrib/ncurses/ncurses/tinfo/ |
H A D | read_termcap.c | 792 char pathbuf[PBUFSIZ]; /* holds raw path of filenames */ local 793 CGETENT_CONST char *pathvec[PVECSIZ]; /* point to names in pathbuf */ 799 p = pathbuf; 811 _nc_str_init(&desc, pathbuf, sizeof(pathbuf)); 836 *fname++ = pathbuf; /* tokenize path into vector of names */ 1031 char pathbuf[PATH_MAX]; local 1068 _nc_SPRINTF(pathbuf, _nc_SLIMIT(sizeof(pathbuf)) 1070 ADD_TC(pathbuf, filecoun [all...] |
/freebsd-11.0-release/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-11.0-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, 644 glob3(Char *pathbuf, Cha argument [all...] |
/freebsd-11.0-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-11.0-release/sys/kern/ |
H A D | vfs_mount.c | 1035 char *pathbuf; local 1097 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); 1098 strcpy(pathbuf, fspath); 1099 error = vn_path_to_global_path(td, vp, pathbuf, MNAMELEN); 1102 error = vfs_domount_first(td, vfsp, pathbuf, vp, 1105 free(pathbuf, M_TEMP); 1130 char *pathbuf; local 1140 pathbuf = malloc(MNAMELEN, M_TEMP, M_WAITOK); 1141 error = copyinstr(uap->path, pathbuf, MNAMELEN, NULL); 1143 free(pathbuf, M_TEM [all...] |
/freebsd-11.0-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-11.0-release/bin/ps/ |
H A D | ps.c | 831 char pathbuf[PATH_MAX], pathbuf2[PATH_MAX], pathbuf3[PATH_MAX]; local 847 strlcpy(pathbuf, _PATH_DEV, sizeof(pathbuf)); 848 strlcat(pathbuf, elem, sizeof(pathbuf)); 849 ttypath = pathbuf; 850 if (strncmp(pathbuf, _PATH_TTY, strlen(_PATH_TTY)) == 0) 852 if (strncmp(pathbuf, _PATH_PTS, strlen(_PATH_PTS)) == 0) 854 if (strcmp(pathbuf, _PATH_CONSOLE) == 0)
|
/freebsd-11.0-release/libexec/rtld-elf/ |
H A D | libmap.c | 394 char pathbuf[64], *s, *t; local 396 if (n < sizeof(pathbuf) - 1) 397 s = pathbuf; 403 if (s != pathbuf)
|
/freebsd-11.0-release/usr.bin/rpcgen/ |
H A D | rpc_main.c | 81 static char pathbuf[MAXPATHLEN + 1]; variable 1140 if (strlcpy(pathbuf, argv[i], 1141 sizeof(pathbuf)) >= sizeof(pathbuf) 1142 || strlcat(pathbuf, "/cpp", 1143 sizeof(pathbuf)) >= 1144 sizeof(pathbuf)) { 1148 CPP = pathbuf;
|
/freebsd-11.0-release/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-11.0-release/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...] |