gnome-vfs r5434 - in trunk: . libgnomevfs



Author: tml
Date: Tue Jan 22 13:40:49 2008
New Revision: 5434
URL: http://svn.gnome.org/viewvc/gnome-vfs?rev=5434&view=rev

Log:
2008-01-22  Tor Lillqvist  <tml novell com>

	* libgnomevfs/gnome-vfs-module-shared.c
	(gnome_vfs_stat_to_file_info): Don't use S_ISLNK() if it isn't
	there.



Modified:
   trunk/ChangeLog
   trunk/libgnomevfs/gnome-vfs-module-shared.c

Modified: trunk/libgnomevfs/gnome-vfs-module-shared.c
==============================================================================
--- trunk/libgnomevfs/gnome-vfs-module-shared.c	(original)
+++ trunk/libgnomevfs/gnome-vfs-module-shared.c	Tue Jan 22 13:40:49 2008
@@ -168,8 +168,10 @@
 #endif
 	else if (S_ISREG (statptr->st_mode))
 		file_info->type = GNOME_VFS_FILE_TYPE_REGULAR;
+#ifdef S_ISLNK
 	else if (S_ISLNK (statptr->st_mode))
 		file_info->type = GNOME_VFS_FILE_TYPE_SYMBOLIC_LINK;
+#endif
 	else
 		file_info->type = GNOME_VFS_FILE_TYPE_UNKNOWN;
 



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