mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-07 11:09:39 +02:00
Don't list the user directory as a mount, fix potential issue when other
2008-04-04 Sebastien Bacher <seb128@ubuntu.com> * gunixmounts.c: (g_unix_mount_guess_should_display): Don't list the user directory as a mount, fix potential issue when other users have a similar naming and don't special case the gvfs mounts there since that's not required (#525866) svn path=/trunk/; revision=6825
This commit is contained in:
parent
e2bcb1d1a6
commit
087bf32df3
@ -1,3 +1,10 @@
|
|||||||
|
2008-04-04 Sebastien Bacher <seb128@ubuntu.com>
|
||||||
|
|
||||||
|
* gunixmounts.c: (g_unix_mount_guess_should_display):
|
||||||
|
Don't list the user directory as a mount, fix potential issue
|
||||||
|
when other users have a similar naming and don't special case the
|
||||||
|
gvfs mounts there since that's not required (#525866)
|
||||||
|
|
||||||
2008-03-31 Alexander Larsson <alexl@redhat.com>
|
2008-03-31 Alexander Larsson <alexl@redhat.com>
|
||||||
|
|
||||||
* glocalfile.c (get_parent):
|
* glocalfile.c (get_parent):
|
||||||
|
@ -1887,13 +1887,10 @@ g_unix_mount_guess_should_display (GUnixMountEntry *mount_entry)
|
|||||||
mount_path = mount_entry->mount_path;
|
mount_path = mount_entry->mount_path;
|
||||||
if (mount_path != NULL)
|
if (mount_path != NULL)
|
||||||
{
|
{
|
||||||
if (strstr (mount_path, "/.gvfs") != NULL)
|
|
||||||
return TRUE;
|
|
||||||
|
|
||||||
if (g_str_has_prefix (mount_path, "/media/"))
|
if (g_str_has_prefix (mount_path, "/media/"))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
||||||
if (g_str_has_prefix (mount_path, g_get_home_dir ()))
|
if (g_str_has_prefix (mount_path, g_get_home_dir ()) && mount_path[strlen (g_get_home_dir())] == G_DIR_SEPARATOR)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user