]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix default TMPDIR path.
authorMichael R Sweet <michaelrsweet@gmail.com>
Thu, 7 Apr 2016 19:05:35 +0000 (15:05 -0400)
committerMichael R Sweet <michaelrsweet@gmail.com>
Thu, 7 Apr 2016 19:05:35 +0000 (15:05 -0400)
cups/tempfile.c
test/ippserver.c

index 495eeb29c62d7c48104bd278376efaa0d0b36444..772ca4ef5a1c1078e2dd9ab8d08abbe531017fdf 100644 (file)
@@ -71,11 +71,11 @@ cupsTempFd(char *filename,          /* I - Pointer to buffer */
   */
 
   if ((tmpdir = getenv("TMPDIR")) == NULL)
-#  ifdef __APPLE__
+#  if defined(__APPLE__) && !TARGET_OS_IOS
     tmpdir = "/private/tmp";           /* /tmp is a symlink to /private/tmp */
 #  else
     tmpdir = "/tmp";
-#  endif /* __APPLE__ */
+#  endif /* __APPLE__  && !TARGET_OS_IOS */
 #endif /* WIN32 */
 
  /*
index 69e29cd385cc9c7fbf5dbeaf3c7b095a1d11716f..bb60f43bccd7a81055f3bb412183c2cb45f0016e 100644 (file)
@@ -680,7 +680,7 @@ main(int  argc,                             /* I - Number of command-line args */
 #ifdef WIN32
     if ((tmpdir = getenv("TEMP")) == NULL)
       tmpdir = "C:/TEMP";
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) && !TARGET_OS_IOS
     if ((tmpdir = getenv("TMPDIR")) == NULL)
       tmpdir = "/private/tmp";
 #else