summaryrefslogtreecommitdiffstats
path: root/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-utils.c
blob: db2eac99a85d2c7a3f99d68135a5f71d854c910f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
--- gnome-vfs-utils.c.orig  Sat Mar 13 18:57:02 2004
+++ gnome-vfs-utils.c   Sat Mar 13 18:51:21 2004
@@ -797,8 +797,10 @@
    
 #if HAVE_STATVFS
    statfs_result = statvfs (unescaped_path, &statfs_buffer);
+#define statfs_bsize f_frsize
 #else
    statfs_result = statfs (unescaped_path, &statfs_buffer);   
+#define statfs_bsize f_bsize
 #endif  
 
    if (statfs_result != 0) {
@@ -831,7 +833,7 @@
        }
    }
 
-   block_size = statfs_buffer.f_bsize; 
+   block_size = statfs_buffer.statfs_bsize; 
    free_blocks = statfs_buffer.f_bavail;
 
    *size = block_size * free_blocks;
@@ -859,7 +861,7 @@
    paths = g_strsplit (gnome_var, ":", 0); 
 
    for (temp_paths = paths; *temp_paths != NULL; temp_paths++) {
-       full_filename = g_strconcat (*temp_paths, "/share/pixmaps/", relative_filename, NULL);
+       full_filename = g_strconcat (*temp_paths, "/share/gnome/pixmaps/", relative_filename, NULL);
        if (g_file_test (full_filename, G_FILE_TEST_EXISTS)) {
            g_strfreev (paths);
            return full_filename;