]> git.pld-linux.org Git - packages/gnome-vfs2.git/blob - gnome-vfs2-resolve_fstab_symlinks.patch
This commit was manufactured by cvs2git to create branch 'DEVEL'.
[packages/gnome-vfs2.git] / gnome-vfs2-resolve_fstab_symlinks.patch
1 # upstream http://bugzilla.gnome.org/show_bug.cgi?id=132797
2
3 diff -Nur gnome-vfs2-2.8.3/libgnomevfs/gnome-vfs-unix-mounts.c gnome-vfs2-2.8.3.new/libgnomevfs/gnome-vfs-unix-mounts.c
4 --- gnome-vfs2-2.8.3/libgnomevfs/gnome-vfs-unix-mounts.c        2004-10-15 10:00:02.000000000 +0200
5 +++ gnome-vfs2-2.8.3.new/libgnomevfs/gnome-vfs-unix-mounts.c    2004-11-23 17:19:09.426568360 +0100
6 @@ -538,6 +538,7 @@
7         char *opt, *opt_end;
8         struct stat sb;
9         GnomeVFSUnixMountPoint *mount_entry;
10 +        char rpath[PATH_MAX];
11         
12         stat_file = read_file = get_fstab_file ();
13  
14 @@ -569,7 +570,12 @@
15                 
16                 mount_entry = g_new0 (GnomeVFSUnixMountPoint, 1);
17  
18 -               mount_entry->mount_path = g_strdup (mntent->mnt_dir);
19 +                /* resolve symlinks */
20 +                if (realpath (mntent->mnt_dir, rpath))
21 +                    mount_entry->mount_path = g_strdup (rpath);
22 +                else
23 +                    mount_entry->mount_path = g_strdup (mntent->mnt_dir);
24 +
25                 mount_entry->device_path = g_strdup (mntent->mnt_fsname);
26                 mount_entry->filesystem_type = g_strdup (mntent->mnt_type);
27  
This page took 0.05911 seconds and 3 git commands to generate.