From c2e1e80f36de1fb3659955ea2a837c20ebe21f95 Mon Sep 17 00:00:00 2001 From: Chris Jefferson Date: Fri, 27 Mar 2020 17:44:02 +0000 Subject: [PATCH] Do not special case temporary directory in cygwin --- src/streams.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/streams.c b/src/streams.c index 2f871a9e5f6..8c9b1a96844 100644 --- a/src/streams.c +++ b/src/streams.c @@ -976,12 +976,7 @@ static Obj FuncREAD_GAP_ROOT(Obj self, Obj filename) */ static Obj FuncTmpName(Obj self) { -#ifdef SYS_IS_CYGWIN32 - char name[] = "C:/WINDOWS/Temp/gaptempfile.XXXXXX"; -#else char name[] = "/tmp/gaptempfile.XXXXXX"; -#endif - int fd = mkstemp(name); if (fd < 0) return Fail; @@ -1002,11 +997,7 @@ static Obj FuncTmpDirectory(Obj self) name = MakeString(env_tmpdir); } else { -#ifdef SYS_IS_CYGWIN32 - name = MakeString("C:/WINDOWS/Temp/"); -#else name = MakeString("/tmp"); -#endif } const char * extra = "/gaptempdirXXXXXX"; AppendCStr(name, extra, strlen(extra));