Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The "pid file" was getting created mode 666, not applying the umask
[rsync/rsync.git]
/
receiver.c
diff --git
a/receiver.c
b/receiver.c
index
0533fff
..
816d69f
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-417,7
+417,8
@@
int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
fd2 = do_open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,
file->mode & INITACCESSPERMS);
fd2 = do_open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,
file->mode & INITACCESSPERMS);
- if (fd2 == -1 && relative_paths && errno == ENOENT &&
+ if (fd2 == -1 && errno == ENOENT &&
+ (relative_paths || (compare_dest != NULL)) &&
create_directory_path(fnametmp) == 0) {
fd2 = do_open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,
file->mode & INITACCESSPERMS);
create_directory_path(fnametmp) == 0) {
fd2 = do_open(fnametmp,O_WRONLY|O_CREAT|O_EXCL,
file->mode & INITACCESSPERMS);