glib r6902 - trunk/gio



Author: matthiasc
Date: Sat May 17 06:08:08 2008
New Revision: 6902
URL: http://svn.gnome.org/viewvc/glib?rev=6902&view=rev

Log:
fix free space information for ncpfs


Modified:
   trunk/gio/ChangeLog
   trunk/gio/glocalfile.c

Modified: trunk/gio/glocalfile.c
==============================================================================
--- trunk/gio/glocalfile.c	(original)
+++ trunk/gio/glocalfile.c	Sat May 17 06:08:08 2008
@@ -968,7 +968,8 @@
 
   attribute_matcher = g_file_attribute_matcher_new (attributes);
   
-  if (g_file_attribute_matcher_matches (attribute_matcher,
+  if (!no_size &&
+      g_file_attribute_matcher_matches (attribute_matcher,
 					G_FILE_ATTRIBUTE_FILESYSTEM_FREE))
     {
 #ifdef G_OS_WIN32
@@ -984,7 +985,8 @@
       g_file_info_set_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE, block_size * statfs_buffer.f_bavail);
 #endif
     }
-  if (g_file_attribute_matcher_matches (attribute_matcher,
+  if (!no_size &&
+      g_file_attribute_matcher_matches (attribute_matcher,
 					G_FILE_ATTRIBUTE_FILESYSTEM_SIZE))
     {
 #ifdef G_OS_WIN32



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