Index: /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
===================================================================
--- /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp	(revision 33855)
+++ /trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp	(revision 33856)
@@ -106,4 +106,23 @@
      * procfs contains the full path but not the actual share name ...
      * FILE *pFh = setmntent("/proc/mounts", "r+t"); */
+#ifdef RT_OS_SOLARIS
+    FILE *pFh = fopen(_PATH_MOUNTED, "r");
+    if (!pFh)
+        VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mtab!\n");
+    else
+    {
+        mnttab mntTab;
+        while ((getmntent(&pFh, &mntTab)))
+        {
+            if (!RTStrICmp(mntTab->mnt_special, pszShare))
+            {
+                fMounted = RTStrPrintf(pszMountPoint, cbMountPoint, "%s", pMntEnt->mnt_mountp)
+                         ? true : false;
+                break;
+            }
+        }
+        fclose(pFh);
+    }
+#else
     FILE *pFh = setmntent(_PATH_MOUNTED, "r+t");
     if (pFh == NULL)
@@ -123,4 +142,5 @@
         endmntent(pFh);
     }
+#endif
     return fMounted;
 }
