aboutsummaryrefslogtreecommitdiff
path: root/devel/gnomevfs2/files/patch-libgnomevfs_gnome-vfs-unix-mounts.c
blob: 21912f46e0ec177669291e972ea1ee5145afc4af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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;
 				}
 			}