]> git.pld-linux.org Git - packages/gnome-vfs2.git/commitdiff
- more fedora fixes, rel. 3.1, testing welcome (specially pen drive owners)
authorfreetz <freetz@pld-linux.org>
Mon, 18 Oct 2004 13:39:59 +0000 (13:39 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gnome-vfs2-bufer-fix.patch -> 1.1
    gnome-vfs2-mtab-mtime-check.patch -> 1.1

gnome-vfs2-bufer-fix.patch [new file with mode: 0644]
gnome-vfs2-mtab-mtime-check.patch [new file with mode: 0644]

diff --git a/gnome-vfs2-bufer-fix.patch b/gnome-vfs2-bufer-fix.patch
new file mode 100644 (file)
index 0000000..c0389e8
--- /dev/null
@@ -0,0 +1,19 @@
+Index: libgnomevfs/gnome-vfs-socket-buffer.c
+===================================================================
+RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-socket-buffer.c,v
+retrieving revision 1.11
+diff -u -p -r1.11 gnome-vfs-socket-buffer.c
+--- libgnomevfs/gnome-vfs-socket-buffer.c      7 Jul 2004 15:04:30 -0000       1.11
++++ libgnomevfs/gnome-vfs-socket-buffer.c      13 Oct 2004 11:51:08 -0000
+@@ -412,7 +412,10 @@ flush (GnomeVFSSocketBuffer *socket_buff
+               if (result != GNOME_VFS_OK) {
+                       return result;
+               }
+-              
++
++              memmove (output_buffer->data,
++                       output_buffer->data + bytes_written,
++                       output_buffer->byte_count - bytes_written);
+               output_buffer->byte_count -= bytes_written;
+       }
diff --git a/gnome-vfs2-mtab-mtime-check.patch b/gnome-vfs2-mtab-mtime-check.patch
new file mode 100644 (file)
index 0000000..fb80768
--- /dev/null
@@ -0,0 +1,151 @@
+Index: libgnomevfs/gnome-vfs-unix-mounts.c
+===================================================================
+RCS file: /cvs/gnome/gnome-vfs/libgnomevfs/gnome-vfs-unix-mounts.c,v
+retrieving revision 1.17
+diff -u -p -r1.17 gnome-vfs-unix-mounts.c
+--- libgnomevfs/gnome-vfs-unix-mounts.c        22 Sep 2004 08:38:38 -0000      1.17
++++ libgnomevfs/gnome-vfs-unix-mounts.c        15 Oct 2004 08:14:01 -0000
+@@ -235,6 +235,7 @@ gboolean
+ _gnome_vfs_get_current_unix_mounts (GList **return_list)
+ {
+       static time_t last_mtime = 0;
++      static off_t last_size = 0;
+       struct mntent *mntent;
+       FILE *file;
+       char *read_file;
+@@ -254,11 +255,12 @@ _gnome_vfs_get_current_unix_mounts (GLis
+               return TRUE;
+       }
+-      if (sb.st_mtime == last_mtime) {
++      if (sb.st_mtime == last_mtime && sb.st_size == last_size) {
+               return FALSE;
+       }
+       last_mtime = sb.st_mtime;
++      last_size = sb.st_size;
+       file = setmntent (read_file, "r");
+       if (file == NULL) {
+@@ -332,6 +334,7 @@ gboolean
+ _gnome_vfs_get_current_unix_mounts (GList **return_list)
+ {
+       static time_t last_mtime = 0;
++      static off_t last_size = 0;
+       struct mnttab mntent;
+       FILE *file;
+       char *read_file;
+@@ -350,11 +353,12 @@ _gnome_vfs_get_current_unix_mounts (GLis
+               return TRUE;
+       }
+-      if (sb.st_mtime == last_mtime) {
++      if (sb.st_mtime == last_mtime && sb.st_size == last_size) {
+               return FALSE;
+       }
+       last_mtime = sb.st_mtime;
++      last_size = sb.st_size;
+       file = setmntent (read_file, "r");
+       if (file == NULL) {
+@@ -526,6 +530,7 @@ gboolean
+ _gnome_vfs_get_unix_mount_table (GList **return_list)
+ {
+       static time_t last_mtime = 0;
++      static off_t last_size = 0;
+       struct mntent *mntent;
+       FILE *file;
+       char *read_file;
+@@ -544,11 +549,12 @@ _gnome_vfs_get_unix_mount_table (GList *
+               return TRUE;
+       }
+-      if (sb.st_mtime == last_mtime) {
++      if (sb.st_mtime == last_mtime && sb.st_size == last_size) {
+               return FALSE;
+       }
+       last_mtime = sb.st_mtime;
++      last_size = sb.st_size;
+       file = setmntent (read_file, "r");
+       if (file == NULL) {
+@@ -613,6 +619,7 @@ gboolean
+ _gnome_vfs_get_unix_mount_table (GList **return_list)
+ {
+       static time_t last_mtime = 0;
++      static off_t last_size = 0;
+       struct mnttab mntent;
+       FILE *file;
+       char *read_file;
+@@ -630,11 +637,12 @@ _gnome_vfs_get_unix_mount_table (GList *
+               return TRUE;
+       }
+-      if (sb.st_mtime == last_mtime) {
++      if (sb.st_mtime == last_mtime && sb.st_size == last_size) {
+               return FALSE;
+       }
+       last_mtime = sb.st_mtime;
++      last_size = sb.st_size;
+       file = setmntent (read_file, "r");
+       if (file == NULL) {
+@@ -801,6 +809,7 @@ gboolean
+ _gnome_vfs_get_unix_mount_table (GList **return_list)
+ {
+       static time_t last_mtime = 0;
++      static off_t last_size = 0;
+       struct mntent *mntent;
+       FILE *file;
+       char *read_file;
+@@ -813,17 +822,17 @@ _gnome_vfs_get_unix_mount_table (GList *
+       *return_list = NULL;
+       
+-      if (last_mtime != 0) {
+-              if (stat (stat_file, &sb) < 0) {
+-                      g_warning ("Unable to stat %s: %s", stat_file,
+-                                 g_strerror (errno));
+-                      return TRUE;
+-              }
++      if (stat (stat_file, &sb) < 0) {
++              g_warning ("Unable to stat %s: %s", stat_file,
++                         g_strerror (errno));
++              return TRUE;
++      }
+               
+-              if (sb.st_mtime == last_mtime) {
+-                      return FALSE;
+-              }
++      if (last_mtime != 0 && fsb.st_mtime == last_mtime && fsb.st_size == last_size) {
++              return FALSE;
+       }
++      last_mtime = fsb.st_mtime;
++      last_size = fsb.st_size;
+       file = setmntent (read_file, "r");
+       if (file == NULL) {
+@@ -857,6 +866,7 @@ gboolean
+ _gnome_vfs_get_unix_mount_table (GList **return_list)
+ {
+       static time_t last_mtime = 0;
++      static off_t last_size = 0;
+       struct fstab *fstab = NULL;
+       char *stat_file;
+       struct stat fsb;
+@@ -875,10 +885,11 @@ _gnome_vfs_get_unix_mount_table (GList *
+               return TRUE;
+       }
+-      if (last_mtime != 0 && fsb.st_mtime == last_mtime) {
++      if (last_mtime != 0 && fsb.st_mtime == last_mtime && fsb.st_size == last_size) {
+               return FALSE;
+       }
+       last_mtime = fsb.st_mtime;
++      last_size = fsb.st_size;
+  
+       *return_list = NULL;
This page took 0.035893 seconds and 4 git commands to generate.