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 3bbac2c3a0602b9e37223aac6fea6cbae692e48b..1ce2faf19ee0d958c58cf83c2bf8dd3b22b5af99 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
 2001-12-04 [paul]      0.6.5claws49
 
        * sync with sylpheed 0.6.5cvs21
index ecb78636c23ae620815e9fe14deb2c8374713819..0182ed49cc221abb35bdb4efa8d39c6787a8e8b1 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=6
 MICRO_VERSION=5
 INTERFACE_AGE=0
 BINARY_AGE=0
 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
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl
index 9f483fe0d70b45cf91a10041b8015a8214967f9e..b9996810f6a34443649599d82f659862d2629ceb 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
 #if HAVE_FCHMOD
                        fchmod(fileno(fp), filemode);
 #else
+                       gchar *markfile;
+
                        markfile = folder_item_get_mark_file(dest);
                        if (markfile) {
                                chmod(markfile, filemode);
                        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
 #if HAVE_FCHMOD
                        fchmod(fileno(fp), filemode);
 #else
+                       gchar *markfile;
+
                        markfile = folder_item_get_mark_file(dest);
                        if (markfile) {
                                chmod(markfile, filemode);
                        markfile = folder_item_get_mark_file(dest);
                        if (markfile) {
                                chmod(markfile, filemode);