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:
ec9df38
)
Add comment before call to mktemp saying it is deliberately chosen over
author
David Dykstra
<dwd@samba.org>
Thu, 5 Nov 1998 14:33:38 +0000
(14:33 +0000)
committer
David Dykstra
<dwd@samba.org>
Thu, 5 Nov 1998 14:33:38 +0000
(14:33 +0000)
mkstemp.
receiver.c
patch
|
blob
|
blame
|
history
diff --git
a/receiver.c
b/receiver.c
index
189aa41
..
ac9c669
100644
(file)
--- a/
receiver.c
+++ b/
receiver.c
@@
-387,6
+387,10
@@
int recv_files(int f_in,struct file_list *flist,char *local_name,int f_gen)
continue;
}
+ /* mktemp is deliberately used here instead of mkstemp.
+ because O_EXCL is used on the open, the race condition
+ is not a problem or a security hole, and we want to
+ control the access permissions on the created file. */
if (NULL == do_mktemp(fnametmp)) {
rprintf(FERROR,"mktemp %s failed\n",fnametmp);
receive_data(f_in,buf,-1,NULL,file->length);