Lines Matching refs:catch
131 char *catch = try->parent ? try->name : TT.destname, *err = "%s";
148 && (catch = TT.destname))
149 || (!fstatat(cfd, catch, &cst, 0) && cst.st_dev == try->st.st_dev
152 error_msg("'%s' is '%s'", catch, err = dirtree_path(try, 0));
160 if (!faccessat(cfd, catch, F_OK, 0) && !S_ISDIR(cst.st_mode)) {
167 } else if ((flags & FLAG_F) && unlinkat(cfd, catch, 0)) {
168 error_msg("unlink '%s'", catch);
197 catch = try->name;
208 if (!mkdirat(cfd, catch, try->st.st_mode | 0200) || errno == EEXIST)
209 if (-1 != (try->extra = openat(cfd, catch, O_NOFOLLOW)))
216 if (!linkat(tfd, try->name, cfd, catch, 0)) err = 0;
239 if (!symlinkat(s, cfd, catch)) {
254 ((!unlinkat(cfd, catch, 0) || ENOENT == errno) &&
255 !symlinkat(toybuf, cfd, catch)))
256 : !mknodat(cfd, catch, try->st.st_mode, try->st.st_rdev))
268 catch = try->name;
273 fdout = openat(cfd, catch, O_RDWR|O_CREAT|O_TRUNC, try->st.st_mode);
295 perror_msg("%s setxattr(%s=%s)", catch, name, value);
305 } while (err && (flags & (FLAG_f|FLAG_n)) && !unlinkat(cfd, catch, 0));
320 rc = fchownat(cfd, catch, try->st.st_uid, try->st.st_gid,
335 if (fdout == AT_FDCWD) utimensat(cfd, catch, times, AT_SYMLINK_NOFOLLOW);
353 if (catch == try->name) {
356 catch = xmprintf("%s%s", TT.destname, f+strlen(try->name));
358 f = catch;
360 perror_msg(err, catch);