[gvfs] ftp: fix usage of undeclared variable (unix->is_unix)



commit 202234cde5528dd62f9a6b1c3d3fb3c333952b0e
Author: Daniel Macks <dmacks netspace org>
Date:   Wed Jun 23 10:50:04 2010 +0200

    ftp: fix usage of undeclared variable (unix->is_unix)
    
    gvfsftpdircache.c: In function 'g_vfs_ftp_dir_cache_funcs_process':
    gvfsftpdircache.c:589: error: 'unix' undeclared (first use in this function)
    
    ...caught when building on Mac OS X.
    
    Apparently using "unix" works for some magic reason on gnu/linux and friends.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=622159

 daemon/gvfsftpdircache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/gvfsftpdircache.c b/daemon/gvfsftpdircache.c
index 8ae963a..9ba1473 100644
--- a/daemon/gvfsftpdircache.c
+++ b/daemon/gvfsftpdircache.c
@@ -595,7 +595,7 @@ g_vfs_ftp_dir_cache_funcs_process (GInputStream *        stream,
                                        type == 'l' ? G_FILE_TYPE_SYMBOLIC_LINK :
                                        G_FILE_TYPE_DIRECTORY);
 
-      if (unix)
+      if (is_unix)
         g_file_info_set_is_hidden (info, result.fe_fnlen > 0 &&
                                          result.fe_fname[0] == '.');
 



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