[GNOME VFS] file-method patch

Alexander Larsson <[email protected]>
Newsgroups gmane.comp.gnome.vfs
Message-ID <Pine.LNX.4.44.0206180938060.21066-100000@devserv.devel.redhat.com>
Found this while running valgrind on Nautilus today:

Index: file-method.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/modules/file-method.c,v
retrieving revision 1.105
diff -u -p -r1.105 file-method.c
--- file-method.c       22 May 2002 21:58:20 -0000      1.105
+++ file-method.c       18 Jun 2002 13:27:09 -0000
@@ -667,7 +667,7 @@ get_stat_info (GnomeVFSFileInfo *file_in
                                        /* if we had an earlier ELOOP, don't get in an infinite loop here */
                                || recursive
                                        /* we don't care to follow links */
-                               || lstat (file_info->symlink_name, statptr) != 0
+                               || lstat (symlink_name, statptr) != 0
                                        /* we can't make out where this points to */
                                || !S_ISLNK (statptr->st_mode)) {
                                        /* the next level is not a link */

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   [email protected]    [email protected] 
He's a Nobel prize-winning soccer-playing barbarian with a secret. She's a 
mistrustful wisecracking lawyer from a different time and place. They fight 
crime! 


_______________________________________________
gnome-vfs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gnome-vfs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.