AnsweredAssumed Answered

Patch to enable CIFS on FreeBSD

Question asked by mreyem on Jul 18, 2014
Hi there,
in order to enable CIFS on FreeBSD we had to implement this patch on the org/alfresco/jlan/util/Platform class. Otherwise you'll get the annoying error message of Win32NetBIOS error.



— org/alfresco/jlan/util/Platform.java.orig   2014-07-17 19:45:59.462793458 +0200
+++ org/alfresco/jlan/util/Platform.java        2014-07-17 17:51:36.272340218 +0200
@@ -57,7 +57,7 @@
         _platformType = Type.WINDOWS;
       else if (osName.equalsIgnoreCase("Linux"))
         _platformType = Type.LINUX;
-      else if (osName.startsWith("Mac OS X") || osName.equals( "Darwin"))
+      else if (osName.startsWith("Mac OS X") || osName.equals( "Darwin") || osName.equals("FreeBSD"))
         _platformType = Type.MACOSX;
       else if (osName.startsWith("Solaris") || osName.startsWith("SunOS"))
         _platformType = Type.SOLARIS;


We know that maybe it's not the best solution to identify FreeBSD with MacOsX, but since they're family related it's not a big deal and everything works. Hope this helps

Outcomes