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
(from parent 1:
c9b16cd
)
Make sure that the user has write permissions when opening a temp file.
author
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 19:27:49 +0000
(19:27 +0000)
committer
Wayne Davison
<wayned@samba.org>
Sat, 3 Nov 2007 19:27:49 +0000
(19:27 +0000)
syscall.c
patch
|
blob
|
blame
|
history
diff --git
a/syscall.c
b/syscall.c
index
0dfcaa0
..
4369c6e
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-211,6
+211,7
@@
int do_mkstemp(char *template, mode_t perms)
{
RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
+ perms |= S_IWUSR;
#if defined HAVE_SECURE_MKSTEMP && defined HAVE_FCHMOD && (!defined HAVE_OPEN64 || defined HAVE_MKSTEMP64)
{