Index: /trunk/src/lib/nt/ntstat.c
===================================================================
--- /trunk/src/lib/nt/ntstat.c	(revision 3018)
+++ /trunk/src/lib/nt/ntstat.c	(revision 3019)
@@ -645,21 +645,26 @@
         birdCloseFile(hFile);
 
-        /*
-         * If we hit a mount point (NTFS volume mounted under an empty NTFS directory),
-         * we should return information about what's mounted there rather than the
-         * directory it is mounted at as this is what UNIX does.
-         */
-        hFile = birdOpenFileExW(hRoot, pwszPath,
-                                FILE_READ_ATTRIBUTES,
-                                FILE_ATTRIBUTE_NORMAL,
-                                FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
-                                FILE_OPEN,
-                                FILE_OPEN_FOR_BACKUP_INTENT,
-                                OBJ_CASE_INSENSITIVE);
-        if (hFile != INVALID_HANDLE_VALUE)
-        {
-            rc = birdStatHandle2(hFile, pStat, NULL, pwszPath);
-            pStat->st_ismountpoint = 2;
-            birdCloseFile(hFile);
+        if (rc || !pStat->st_ismountpoint)
+        { /* very likely */ }
+        else
+        {
+            /*
+             * If we hit a mount point (NTFS volume mounted under an empty NTFS directory),
+             * we should return information about what's mounted there rather than the
+             * directory it is mounted at as this is what UNIX does.
+             */
+            hFile = birdOpenFileExW(hRoot, pwszPath,
+                                    FILE_READ_ATTRIBUTES,
+                                    FILE_ATTRIBUTE_NORMAL,
+                                    FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE,
+                                    FILE_OPEN,
+                                    FILE_OPEN_FOR_BACKUP_INTENT,
+                                    OBJ_CASE_INSENSITIVE);
+            if (hFile != INVALID_HANDLE_VALUE)
+            {
+                rc = birdStatHandle2(hFile, pStat, NULL, pwszPath);
+                pStat->st_ismountpoint = 2;
+                birdCloseFile(hFile);
+            }
         }
     }
