gnome-vfs r5434 - in trunk: . libgnomevfs
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-vfs r5434 - in trunk: . libgnomevfs
- Date: Tue, 22 Jan 2008 13:40:49 +0000 (GMT)
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]