+2006-02-13 [colin] 2.0.0cvs48
+
+ * src/procmime.c
+ Add missing fclose()s on error
+ * src/textview.c
+ Remove unused code
+ * src/common/utils.c
+ Fix temp files not being deleted on windows
+ Patches by Thomas Gilgin
+
2006-02-13 [cleroy] 2.0.0cvs47
* src/mainwindow.c
( cvs diff -u -r 1.207.2.88 -r 1.207.2.89 src/folderview.c; cvs diff -u -r 1.115.2.74 -r 1.115.2.75 src/main.c; cvs diff -u -r 1.274.2.95 -r 1.274.2.96 src/mainwindow.c; ) > 2.0.0cvs45.patchset
( cvs diff -u -r 1.1.2.5 -r 1.1.2.6 src/plugins/pgpcore/prefs_gpg.c; ) > 2.0.0cvs46.patchset
( cvs diff -u -r 1.274.2.96 -r 1.274.2.97 src/mainwindow.c; ) > 2.0.0cvs47.patchset
+( cvs diff -u -r 1.49.2.72 -r 1.49.2.73 src/procmime.c; cvs diff -u -r 1.96.2.95 -r 1.96.2.96 src/textview.c; cvs diff -u -r 1.36.2.55 -r 1.36.2.56 src/common/utils.c; ) > 2.0.0cvs48.patchset
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=47
+EXTRA_VERSION=48
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
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) {
outfp = get_tmpfile_in_dir(get_mime_tmp_dir(), &tmpfilename);
if (!outfp) {
perror("tmpfile");
+ fclose(infp);
return FALSE;
}
tmp_file = TRUE;
if (!tmpfp) {
perror("tmpfile");
if (tmp_file) fclose(outfp);
+ fclose(infp);
return FALSE;
}
}
gchar *filename;
RemoteURI *uri;
gchar *uri_str;
- FILE *fp;
-
- fp = g_fopen(mimeinfo->data.filename, "rb");
- fseek(fp, mimeinfo->offset, SEEK_SET);
filename = procmime_get_tmp_file_name(mimeinfo);
if (procmime_get_part(filename, mimeinfo) < 0) {