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
An improved clean_fname() routine that is more efficient and will also
[rsync/rsync.git]
/
syscall.c
diff --git
a/syscall.c
b/syscall.c
index
95646a3
..
1e18766
100644
(file)
--- a/
syscall.c
+++ b/
syscall.c
@@
-152,7
+152,7
@@
int do_mkstemp(char *template, mode_t perms)
RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
RETURN_ERROR_IF(dry_run, 0);
RETURN_ERROR_IF(read_only, EROFS);
-#if
defined(HAVE_SECURE_MKSTEMP) && defined(HAVE_FCHMOD
)
+#if
HAVE_SECURE_MKSTEMP && HAVE_FCHMOD && (!HAVE_OPEN64 || HAVE_MKSTEMP64
)
{
int fd = mkstemp(template);
if (fd == -1)
{
int fd = mkstemp(template);
if (fd == -1)