[gnome-commander] Fixed problem #591944 (permissions set to 000 after chmod)



commit 5501bcd910d9cb459d5b68ed636c7ce8d8bed23d
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Aug 19 19:54:11 2009 +0200

    Fixed problem #591944 (permissions set to 000 after chmod)

 NEWS                             |    1 +
 doc/C/gnome-commander.xml        |    3 +++
 src/gnome-cmd-chmod-component.cc |    6 +++---
 3 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/NEWS b/NEWS
index f5a4d88..873bf49 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ gnome-commander 1.2.8.2
 ---------------
 
 Bug fixes:
+ * Fixed problem #591944 (permissions set to 000 after chmod)
 
 
 ===================================
diff --git a/doc/C/gnome-commander.xml b/doc/C/gnome-commander.xml
index aaf4fce..bc2c3e0 100644
--- a/doc/C/gnome-commander.xml
+++ b/doc/C/gnome-commander.xml
@@ -6007,6 +6007,9 @@
                 <para>Bug fixes:</para>
                 <para>
                     <itemizedlist>
+                        <listitem>
+                            <para>Fixed problem #591944 (permissions set to 000 after chmod)</para>
+                        </listitem>
                     </itemizedlist>
                 </para>
             </entry>
diff --git a/src/gnome-cmd-chmod-component.cc b/src/gnome-cmd-chmod-component.cc
index 8af3e5c..94e5dd0 100644
--- a/src/gnome-cmd-chmod-component.cc
+++ b/src/gnome-cmd-chmod-component.cc
@@ -204,14 +204,14 @@ GtkType gnome_cmd_chmod_component_get_type ()
 
 GnomeVFSFilePermissions gnome_cmd_chmod_component_get_perms (GnomeCmdChmodComponent *comp)
 {
-    GnomeVFSFilePermissions perms = (GnomeVFSFilePermissions) 0;
+    guint perms = 0;
 
     for (gint y=0; y<3; y++)
         for (gint x=0; x<3; x++)
             if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (comp->priv->check_boxes[y][x])))
-                (int &) perms |= check_perm[y][x];
+                perms |= check_perm[y][x];
 
-    return perms;
+    return (GnomeVFSFilePermissions) perms;
 }
 
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]