Index: modules/ftp-method.c
===================================================================
RCS file: /cvs/gnome/gnome-vfs/modules/ftp-method.c,v
retrieving revision 1.129
diff -u -r1.129 ftp-method.c
--- modules/ftp-method.c	28 Sep 2006 17:40:17 -0000	1.129
+++ modules/ftp-method.c	22 Nov 2006 22:27:17 -0000
@@ -2682,6 +2682,11 @@
 					res = GNOME_VFS_ERROR_TOO_MANY_LINKS;
 					break;
 				}
-				
+
+				if (!(file_info->valid_fields & GNOME_VFS_FILE_INFO_FIELDS_SYMLINK_NAME)) {
+					res = GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK;
+					break;
+				}
+
 				symlink_name = gnome_vfs_escape_path_string (symlink_info->symlink_name);
 				gnome_vfs_file_info_clear (symlink_info);
