s/creat/open/
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 11 Dec 2012 08:44:05 +0000 (08:44 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 11 Dec 2012 08:44:05 +0000 (08:44 +0000)
SVN revision: 80630

src/bin/e_fm.c

index 1d33134..9167d84 100644 (file)
@@ -9216,7 +9216,7 @@ _e_fm2_new_file_thread(void *data __UNUSED__, Ecore_Thread *eth)
         errno = 0;
         if (stat(buf, &st) && (errno == ENOENT))
           {
-             fd = creat(buf, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR | S_IWUSR);
+             fd = open(buf, O_WRONLY|O_CREAT|O_TRUNC, S_IRUSR | S_IWUSR);
              if (fd)
                {
                   close(fd);