Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e9357a2
)
Call mkdir_defmode() instead of do_mkdir().
author
Wayne Davison
<wayned@samba.org>
Fri, 24 Feb 2006 01:56:07 +0000
(
01:56
+0000)
committer
Wayne Davison
<wayned@samba.org>
Fri, 24 Feb 2006 01:56:07 +0000
(
01:56
+0000)
backup.c
patch
|
blob
|
blame
|
history
diff --git
a/backup.c
b/backup.c
index
4669c7e
..
1e6b915
100644
(file)
--- a/
backup.c
+++ b/
backup.c
@@
-33,7
+33,6
@@
extern int preserve_devices;
extern int preserve_specials;
extern int preserve_links;
extern int preserve_hard_links;
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 */
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 (*p == '/') {
*p = '\0';
- if (
do_mkdir(fullpath, 0777 & ~orig_umask
) == 0)
+ if (
mkdir_defmode(fullpath
) == 0)
break;
if (errno != ENOENT) {
rsyserr(FERROR, errno,
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;
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;
rsyserr(FERROR, errno, "make_bak_dir mkdir %s failed",
full_fname(fullpath));
goto failure;