diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-12-06 20:01:52 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2013-01-08 15:34:09 +0900 |
commit | 596931c8b4a7a35cbff9c33437d3cd44395d9c3f (patch) | |
tree | e3bb7d3f5df05e299c8484b10e0d0a354d5ac472 /src/fcatomic.c | |
parent | d7de1b5c6d4b8800825913ac40a9cea00824f2f8 (diff) | |
download | fontconfig-596931c8b4a7a35cbff9c33437d3cd44395d9c3f.tar.gz |
Bug 47705 - Using O_CLOEXEC
Diffstat (limited to 'src/fcatomic.c')
-rw-r--r-- | src/fcatomic.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fcatomic.c b/src/fcatomic.c index cb5b7a5..c1daed9 100644 --- a/src/fcatomic.c +++ b/src/fcatomic.c @@ -50,7 +50,6 @@ #include "fcint.h" #include <sys/types.h> #include <sys/stat.h> -#include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <time.h> @@ -109,7 +108,7 @@ FcAtomicLock (FcAtomic *atomic) strcpy ((char *) atomic->tmp, (char *) atomic->file); strcat ((char *) atomic->tmp, TMP_NAME); - fd = mkstemp ((char *) atomic->tmp); + fd = FcMakeTempfile ((char *) atomic->tmp); if (fd < 0) return FcFalse; f = fdopen (fd, "w"); |