X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/16edf86595a5a990a942fa045dfb523dae1fe6cb..b5ae4e25c26f006e686dcefde9fe7d489f840248:/backup.c diff --git a/backup.c b/backup.c index 49985fa9..7db0d2c2 100644 --- a/backup.c +++ b/backup.c @@ -127,7 +127,7 @@ static int make_bak_dir(char *fullpath) 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)); @@ -155,7 +155,7 @@ static int make_bak_dir(char *fullpath) } #endif set_file_attrs(fullpath, file, NULL, NULL, 0); - free(file); + unmake_file(file); } } *p = '/'; @@ -200,7 +200,7 @@ static int keep_backup(const char *fname) 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;