2006-02-13 [colin] 2.0.0cvs48
[claws.git] / src / common / utils.c
index 70383d53edcd343c10ae39b54171383d72fa1ec5..3863372c1ad6cfc9272c17cec970a1dc7e737cf8 100644 (file)
@@ -174,8 +174,8 @@ gint mkstemp_name(const gchar *template, gchar **name_used)
        int tmpfd;
 
        *name_used = g_strdup_printf("%s.%ld",_mktemp(template),count++);
        int tmpfd;
 
        *name_used = g_strdup_printf("%s.%ld",_mktemp(template),count++);
-       tmpfd = open (*name_used, (O_CREAT | O_RDWR | O_BINARY
-                                    | S_IREAD | S_IWRITE));
+       tmpfd = open (*name_used, (O_CREAT | O_RDWR | O_BINARY),
+                                    (S_IRUSR | S_IWUSR));
 
        tempfiles=g_slist_append(tempfiles, g_strdup(*name_used));
        if (tmpfd<0) {
 
        tempfiles=g_slist_append(tempfiles, g_strdup(*name_used));
        if (tmpfd<0) {