aboutsummaryrefslogtreecommitdiffstats
path: root/backup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2010-04-30 12:58:17 -0700
committerWayne Davison <wayned@samba.org>2010-04-30 12:58:17 -0700
commit9fbec6e44c7381ab28e78a991d37b57092459e99 (patch)
tree6b68992a1bd031dd0740c32ba87927c1cf9857b8 /backup.c
parent25082d1ef6712a15c52a1dacb36b7f0642c23ac8 (diff)
downloadandroid_external_rsync-9fbec6e44c7381ab28e78a991d37b57092459e99.tar.gz
android_external_rsync-9fbec6e44c7381ab28e78a991d37b57092459e99.tar.bz2
android_external_rsync-9fbec6e44c7381ab28e78a991d37b57092459e99.zip
May as well use do_mkdir() directly these days.
Diffstat (limited to 'backup.c')
-rw-r--r--backup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backup.c b/backup.c
index 6dbc17a0..e535e6f5 100644
--- 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)