summaryrefslogtreecommitdiffstats
path: root/devel/gnomevfs2/files
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-09 11:42:20 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-09 11:42:20 +0800
commitcb3e6d03a580603fa2fd306c3523e09f2932ab8a (patch)
tree1c36c608cf63ae38b3e4830ed7fd5c30dfd671c7 /devel/gnomevfs2/files
parent00f484dfff13efa56d97230824d719c291074e4f (diff)
downloadmarcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.tar
marcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.tar.gz
marcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.tar.bz2
marcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.tar.lz
marcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.tar.xz
marcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.tar.zst
marcuscom-ports-cb3e6d03a580603fa2fd306c3523e09f2932ab8a.zip
Only show mount points that the user owns, and not just mount points that
are not owned by root. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1985 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/gnomevfs2/files')
-rw-r--r--devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c b/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c
new file mode 100644
index 000000000..21912f46e
--- /dev/null
+++ b/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c
@@ -0,0 +1,13 @@
+--- libgnomevfs/gnome-vfs-unix-mounts.c.orig Mon Mar 8 22:29:57 2004
++++ libgnomevfs/gnome-vfs-unix-mounts.c Mon Mar 8 22:33:35 2004
+@@ -857,8 +857,9 @@
+
+ #ifdef HAVE_SYS_SYSCTL_H
+ if (usermnt != 0) {
++ uid_t uid = getuid ();
+ if (stat (fstab->fs_file, &sb) == 0) {
+- if (sb.st_uid != 0) {
++ if (uid == 0 || sb.st_uid == uid) {
+ mount_entry->is_user_mountable = TRUE;
+ }
+ }