summaryrefslogtreecommitdiffstats
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
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
-rw-r--r--devel/gnome-vfs/Makefile1
-rw-r--r--devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c13
-rw-r--r--devel/gnomevfs2/Makefile1
-rw-r--r--devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c13
4 files changed, 28 insertions, 0 deletions
diff --git a/devel/gnome-vfs/Makefile b/devel/gnome-vfs/Makefile
index 5525ff42e..acdf1ebac 100644
--- a/devel/gnome-vfs/Makefile
+++ b/devel/gnome-vfs/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.5.90
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.5
diff --git a/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c b/devel/gnome-vfs/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c
new file mode 100644
index 000000000..21912f46e
--- /dev/null
+++ b/devel/gnome-vfs/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;
+ }
+ }
diff --git a/devel/gnomevfs2/Makefile b/devel/gnomevfs2/Makefile
index 5525ff42e..acdf1ebac 100644
--- a/devel/gnomevfs2/Makefile
+++ b/devel/gnomevfs2/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnomevfs2
PORTVERSION= 2.5.90
+PORTREVISION= 1
CATEGORIES= devel gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-vfs/2.5
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;
+ }
+ }