add markfile declaration to appropriate functions when fchmod is not available
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 4 Dec 2001 19:08:48 +0000 (19:08 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Tue, 4 Dec 2001 19:08:48 +0000 (19:08 +0000)
ChangeLog.claws
configure.in
src/mh.c

index 3bbac2c..1ce2faf 100644 (file)
@@ -1,3 +1,10 @@
+2001-12-04 [alfons]    0.6.5claws50
+
+       * src/mh.c
+               declare markfile in appropriate functions when
+               no fchmod() is found (thanks to Mark Heerdink <marc@koelkast.net>
+               for spotting this)
+
 2001-12-04 [paul]      0.6.5claws49
 
        * sync with sylpheed 0.6.5cvs21
index ecb7863..0182ed4 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws49
+EXTRA_VERSION=claws50
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 9f483fe..b999681 100644 (file)
--- a/src/mh.c
+++ b/src/mh.c
@@ -246,6 +246,8 @@ gint mh_move_msg(Folder *folder, FolderItem *dest, MsgInfo *msginfo)
 #if HAVE_FCHMOD
                        fchmod(fileno(fp), filemode);
 #else
+                       gchar *markfile;
+
                        markfile = folder_item_get_mark_file(dest);
                        if (markfile) {
                                chmod(markfile, filemode);
@@ -420,6 +422,8 @@ gint mh_copy_msg(Folder *folder, FolderItem *dest, MsgInfo *msginfo)
 #if HAVE_FCHMOD
                        fchmod(fileno(fp), filemode);
 #else
+                       gchar *markfile;
+
                        markfile = folder_item_get_mark_file(dest);
                        if (markfile) {
                                chmod(markfile, filemode);