Separate the dirs from the files in xattrs.text.
[rsync.git] / backup.c
index 6dbc17a0a617b22b841bdec942c6fb8712f6bf4c..e535e6f5af05e4b256f95186a42912349e72da45 100644 (file)
--- a/backup.c
+++ b/backup.c
@@ -98,7 +98,7 @@ static BOOL copy_valid_path(const char *fname)
        for ( ; b; name = b + 1, b = strchr(name, '/')) {
                *b = '\0';
 
-               while (mkdir_defmode(backup_dir_buf) < 0) {
+               while (do_mkdir(backup_dir_buf, ACCESSPERMS) < 0) {
                        if (errno == EEXIST) {
                                val = validate_backup_dir();
                                if (val > 0)