* bug 8208 fixed - Error in creating the temporary directory in function 79/2279/2
Sylvestre Ledru [Tue, 12 Oct 2010 15:14:33 +0000 (17:14 +0200)]
                   createScilabTMPDIR.

Change-Id: Iced5b05109db6d81d3882ee98a07811ea81a2688

scilab/CHANGES_5.3.X
scilab/modules/core/src/c/tmpdir.c

index e05449d..acb0e49 100644 (file)
@@ -143,6 +143,9 @@ Bug Fixes:
 
 * bug 8206 fixed - isnum did not manage blanks.
 
+* bug 8208 fixed - Error in creating the temporary directory in function
+                   createScilabTMPDIR.
+
 
          Changes between version 5.3.0-beta-3 and 5.3.0-beta-4 of Scilab
          ===============================================================
index 6c3aa24..acb5a2a 100644 (file)
@@ -134,7 +134,7 @@ void createScilabTMPDIR(void)
         sprintf(tmp_dir, "%s/SCI_TMP_%d_XXXXXX", tmp_dir_strdup, (int) getpid());
         free(tmp_dir_strdup);
 
-        if(mkdtemp(tmp_dir) < 0)
+        if(mkdtemp(tmp_dir) == NULL)
         {
                 fprintf(stderr,_("Error: Could not create %s: %s\n"), tmp_dir, strerror(errno));
         }