Lines Matching refs:catch
148 char *catch = try->parent ? try->name : TT.destname, *err = "%s"; in cp_node() local
165 && (catch = TT.destname)) in cp_node()
166 || (!fstatat(cfd, catch, &cst, 0) && cst.st_dev == try->st.st_dev in cp_node()
169 error_msg("'%s' is '%s'", catch, err = dirtree_path(try, 0)); in cp_node()
177 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) { in cp_node()
184 } else if ((flags & FLAG_F) && unlinkat(cfd, catch, 0)) { in cp_node()
185 error_msg("unlink '%s'", catch); in cp_node()
214 catch = try->name; in cp_node()
225 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST) in cp_node()
226 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW))) in cp_node()
234 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0; in cp_node()
257 if (!symlinkat(s, cfd, catch)) { in cp_node()
272 sizeof(toybuf) > i && !symlinkat(toybuf, cfd, catch)) in cp_node()
273 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev)) in cp_node()
285 catch = try->name; in cp_node()
288 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode); in cp_node()
310 perror_msg("%s setxattr(%s=%s)", catch, name, value); in cp_node()
320 } while (err && (flags & (FLAG_f|FLAG_n)) && !unlinkat(cfd, catch, 0)); in cp_node()
335 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid, in cp_node()
350 if (fdout == AT_FDCWD) utimensat(cfd, catch, times, AT_SYMLINK_NOFOLLOW); in cp_node()
365 if (err) perror_msg(err, catch); in cp_node()