View | Details | Raw Unified | Return to bug 114473
Collapse All | Expand All

(-)gnome-vfs/modules/file-method.c.orig (+13 lines)
Lines 1886-1891 Link Here
1886
	const char *home_directory;
1886
	const char *home_directory;
1887
	char *target_directory_path;
1887
	char *target_directory_path;
1888
	char *target_directory_uri;
1888
	char *target_directory_uri;
1889
	DIR *near_item_dir;
1889
1890
1890
	
1891
	
1891
	target_directory_path = NULL;
1892
	target_directory_path = NULL;
Lines 1903-1909 Link Here
1903
		return GNOME_VFS_ERROR_CANCELLED;
1904
		return GNOME_VFS_ERROR_CANCELLED;
1904
	}
1905
	}
1905
1906
1907
	/* HACK ALERT: We keep this directory open while we stat() so that even
1908
	 * if the directory is submounted, it will be really mounted in the
1909
	 * kernel and stat() will return the right device number.  If the
1910
	 * directory is not really mounted in the kernel, we'll get a weird
1911
	 * device number corresponding to submount, not the "real" device
1912
	 * number.  See bug #114473 in bugzilla.novell.com for the details.
1913
	 */
1914
1915
	near_item_dir = opendir (full_name_near);
1906
	retval = g_lstat (full_name_near, &near_item_stat);
1916
	retval = g_lstat (full_name_near, &near_item_stat);
1917
	if (near_item_dir != NULL)
1918
		closedir (near_item_dir);
1919
1907
	if (retval != 0) {
1920
	if (retval != 0) {
1908
		g_free (full_name_near);
1921
		g_free (full_name_near);
1909
		return gnome_vfs_result_from_errno ();
1922
		return gnome_vfs_result_from_errno ();

Return to bug 114473