Lines Matching refs:curr
269 FTSENT *curr;
285 for (badcp = rval = 0; (curr = fts_read(ftsp)) != NULL; badcp = 0) {
286 switch (curr->fts_info) {
290 warnc(curr->fts_errno, "%s", curr->fts_path);
294 warnx("%s: directory causes a cycle", curr->fts_path);
308 if (curr->fts_level == FTS_ROOTLEVEL) {
309 strlcpy(rootname, curr->fts_name, sizeof(rootname));
336 if (curr->fts_level == FTS_ROOTLEVEL) {
338 p = strrchr(curr->fts_path, '/');
340 (int)(p - curr->fts_path + 1);
342 if (!strcmp(&curr->fts_path[base],
346 base = curr->fts_pathlen;
349 p = &curr->fts_path[base];
350 nlen = curr->fts_pathlen - base;
373 if (curr->fts_info == FTS_D && root_stat != NULL &&
374 root_stat->st_dev == curr->fts_statp->st_dev &&
375 root_stat->st_ino == curr->fts_statp->st_ino) {
385 fts_set(ftsp, curr, FTS_SKIP);
396 fts_set(ftsp, curr, FTS_SKIP);
401 if (curr->fts_info == FTS_DP) {
407 if (!curr->fts_number)
419 if (setfile(curr->fts_statp, -1))
421 if (preserve_dir_acls(curr->fts_statp,
422 curr->fts_accpath, to.p_path) != 0)
425 mode = curr->fts_statp->st_mode;
439 to_stat.st_dev == curr->fts_statp->st_dev &&
440 to_stat.st_ino == curr->fts_statp->st_ino) {
442 to.p_path, curr->fts_path);
444 if (S_ISDIR(curr->fts_statp->st_mode))
445 (void)fts_set(ftsp, curr, FTS_SKIP);
452 switch (curr->fts_statp->st_mode & S_IFMT) {
456 curr->fts_level == 0)) {
463 if (copy_file(curr, dne))
467 if (copy_link(curr, !dne))
474 curr->fts_path);
475 (void)fts_set(ftsp, curr, FTS_SKIP);
488 mode = curr->fts_statp->st_mode | S_IRWXU;
491 (void)fts_set(ftsp, curr, FTS_SKIP);
505 (void)fts_set(ftsp, curr, FTS_SKIP);
513 (void)fts_set(ftsp, curr, FTS_SKIP);
522 curr->fts_number = pflag || dne;
527 if (copy_special(curr->fts_statp, !dne))
530 if (copy_file(curr, dne))
536 curr->fts_path);
540 if (copy_fifo(curr->fts_statp, !dne))
543 if (copy_file(curr, dne))
548 if (copy_file(curr, dne))
553 (void)printf("%s -> %s\n", curr->fts_path, to.p_path);