Lines Matching refs:curr

328 	FTSENT *curr;
339 for (any_failed = 0; (curr = fts_read(ftsp)) != NULL;) {
341 switch (curr->fts_info) {
345 warnx("%s: %s", curr->fts_path,
346 strerror(curr->fts_errno));
350 warnx("%s: directory causes a cycle", curr->fts_path);
360 if ((curr->fts_namelen +
363 to.p_path, curr->fts_name);
387 if (curr->fts_level == FTS_ROOTLEVEL) {
389 p = strrchr(curr->fts_path, '/');
391 (int)(p - curr->fts_path + 1);
393 if (!strcmp(&curr->fts_path[base],
397 base = curr->fts_pathlen;
400 p = &curr->fts_path[base];
401 nlen = curr->fts_pathlen - base;
424 if (to_stat.st_dev == curr->fts_statp->st_dev &&
425 to_stat.st_ino == curr->fts_statp->st_ino) {
427 to.p_path, curr->fts_path);
429 if (S_ISDIR(curr->fts_statp->st_mode))
430 (void)fts_set(ftsp, curr, FTS_SKIP);
433 if (!S_ISDIR(curr->fts_statp->st_mode) &&
436 to.p_path, curr->fts_path);
443 switch (curr->fts_statp->st_mode & S_IFMT) {
447 ((fts_options & FTS_COMFOLLOW) && curr->fts_level == 0)) {
448 if (copy_file(curr, dne))
451 if (copy_link(curr, !dne))
457 if (curr->fts_info == FTS_D)
459 curr->fts_path);
460 (void)fts_set(ftsp, curr, FTS_SKIP);
470 if (curr->fts_info == FTS_D) /* First pass */
483 curr->fts_statp->st_mode | S_IRWXU) < 0)
494 else if (curr->fts_info == FTS_DP) /* Second pass */
512 if (setfile(curr->fts_statp, 0))
515 if (preserve_dir_acls(curr->fts_statp,
516 curr->fts_accpath, to.p_path) != 0)
522 curr->fts_statp->st_mode);
527 curr->fts_path);
536 if (copy_special(curr->fts_statp, !dne))
539 if (copy_file(curr, dne))
544 if (copy_fifo(curr->fts_statp, !dne))
547 if (copy_file(curr, dne))
551 if (copy_file(curr, dne))
556 (void)printf("%s -> %s\n", curr->fts_path, to.p_path);