aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-extended/webmin/files/mount-excludefs.patch
blob: 58257eb5b1f5c5be0945d6641bcd51d57c63ccec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Index: webmin-1.570/mount/index.cgi
===================================================================
--- webmin-1.570.orig/mount/index.cgi
+++ webmin-1.570/mount/index.cgi
@@ -33,10 +33,12 @@ elsif ($config{'sort_mode'} == 1) {
 	}
 
 # Build visible filesystems list
+@excludefs = split(/,/, $config{excludefs});
 foreach $m (@all) {
 	@minfo = @$m;
 	$p = &simplify_mount_path($minfo[0], $minfo[2]);
 	next if ($ignore{$minfo[2]});
+	next if (grep {$_ eq $minfo[2]} @excludefs);
 	@mmodes = &mount_modes($minfo[2], $minfo[0], $minfo[1]);
 	$canedit = $can_edit{$minfo[2]} && !$mmodes[4] &&
             	   &can_edit_fs(@minfo);