if (p >= rel) {
/* Try to transfer the directory settings of the
* actual dir that the files are coming from. */
- if (do_stat(rel, &sx.st) < 0) {
+ if (x_stat(rel, &sx.st, NULL) < 0) {
rsyserr(FERROR, errno,
"make_bak_dir stat %s failed",
full_fname(rel));
}
#endif
set_file_attrs(fullpath, file, NULL, NULL, 0);
- free(file);
+ unmake_file(file);
}
}
*p = '/';
int ret_code;
/* return if no file to keep */
- if (do_lstat(fname, &sx.st) < 0)
+ if (x_lstat(fname, &sx.st, NULL) < 0)
return 1;
#ifdef SUPPORT_ACLS
sx.acc_acl = sx.def_acl = NULL;