From: Wayne Davison Date: Mon, 2 Aug 2004 21:56:07 +0000 (+0000) Subject: Don't use mkstemp() if the OS has open64() but not mkstemp64(). X-Git-Tag: v2.6.3pre1~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6dcb93208d8f9047adb1a2b302c946752943edb2;p=thirdparty%2Frsync.git Don't use mkstemp() if the OS has open64() but not mkstemp64(). --- diff --git a/syscall.c b/syscall.c index 95646a3bf..1e187662d 100644 --- 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); -#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)