diff options
author | Wayne Davison <wayned@samba.org> | 2006-02-24 01:56:07 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-02-24 01:56:07 +0000 |
commit | a56cdef9b147714d2762fb93c47d7fa0808433c9 (patch) | |
tree | fe08a952f82551d5219e7803243f4814ad70ef57 /backup.c | |
parent | e9357a2deb1adbeb8dd50f90f959a3ecd5f88806 (diff) | |
download | android_external_rsync-a56cdef9b147714d2762fb93c47d7fa0808433c9.tar.gz android_external_rsync-a56cdef9b147714d2762fb93c47d7fa0808433c9.tar.bz2 android_external_rsync-a56cdef9b147714d2762fb93c47d7fa0808433c9.zip |
Call mkdir_defmode() instead of do_mkdir().
Diffstat (limited to 'backup.c')
-rw-r--r-- | backup.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -33,7 +33,6 @@ extern int preserve_devices; extern int preserve_specials; extern int preserve_links; extern int preserve_hard_links; -extern int orig_umask; extern int safe_symlinks; /* make a complete pathname for backup file */ @@ -112,7 +111,7 @@ static int make_bak_dir(char *fullpath) } if (*p == '/') { *p = '\0'; - if (do_mkdir(fullpath, 0777 & ~orig_umask) == 0) + if (mkdir_defmode(fullpath) == 0) break; if (errno != ENOENT) { rsyserr(FERROR, errno, @@ -141,7 +140,7 @@ static int make_bak_dir(char *fullpath) p += strlen(p); if (p == end) break; - if (do_mkdir(fullpath, 0777 & ~orig_umask) < 0) { + if (mkdir_defmode(fullpath) < 0) { rsyserr(FERROR, errno, "make_bak_dir mkdir %s failed", full_fname(fullpath)); goto failure; |