ifolder/www-apps/ifolder3-enterprise/files/home_never_network_drive.patch
geos_one 2bb9cb61b7 bump
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/ifolder@2911 6952d904-891a-0410-993b-d76249ca496b
2011-06-08 15:26:24 +00:00

24 lines
1.1 KiB
Diff

submitted https://bugzilla.novell.com/show_bug.cgi?id=623644
Patch tells iFolder that filesystems mount under "/home" are located locally.
This allows synchronizing encrypted filesystems mounted under "/home", e.g.
on Ubuntu.
May cause a problem with filesystems mounted under "/home" which ARE
network or other non-local filesystems.
Thanks to x2b4 on the ifolder-ubuntu-debian-dev google group.
Index: simias-1.8.3.10200.stable/src/core/Simias.Web/SharedCollection.cs
===================================================================
--- simias-1.8.3.10200.stable.orig/src/core/Simias.Web/SharedCollection.cs 2010-04-15 10:16:23.000000000 -0400
+++ simias-1.8.3.10200.stable/src/core/Simias.Web/SharedCollection.cs 2010-07-19 12:38:09.905200825 -0400
@@ -1106,7 +1106,7 @@ namespace Simias.Web
while(mntLine != null)
{
// verify it's a device on this box
- if(mntLine.StartsWith("/dev") && (mntLine.IndexOf("iso9660") == -1))
+ if((mntLine.StartsWith("/dev") || mntLine.StartsWith("/home")) && (mntLine.IndexOf("iso9660") == -1))
{
Stat stat;
string[] entries;