Windows: Remove unused cleanup flag
[openafs.git] / src / WINNT / afsrdr / kernel / lib / AFSCreate.cpp
index 72343c6..6d479f1 100644 (file)
@@ -641,6 +641,19 @@ AFSCommonCreate( IN PDEVICE_OBJECT DeviceObject,
             try_return( ntStatus);
         }
 
+        if ( BooleanFlagOn( ulOptions, FILE_OPEN_REPARSE_POINT) &&
+             pDirectoryCB != NULL &&
+             !BooleanFlagOn( pDirectoryCB->ObjectInformation->FileAttributes, FILE_ATTRIBUTE_REPARSE_POINT))
+        {
+
+            AFSDbgLogMsg( AFS_SUBSYSTEM_FILE_PROCESSING,
+                          AFS_TRACE_LEVEL_VERBOSE,
+                          "AFSCommonCreate (%08lX) Reparse open request but attribute not set for %wZ Type %08lX\n",
+                          Irp,
+                          &uniFileName,
+                          pDirectoryCB->ObjectInformation->FileType);
+        }
+
         //
         // Based on the options passed in, process the file accordingly.
         //
@@ -2048,7 +2061,6 @@ AFSOpenTargetDirectory( IN PIRP Irp,
     PIO_STACK_LOCATION pIrpSp = IoGetCurrentIrpStackLocation( Irp);
     PACCESS_MASK pDesiredAccess = NULL;
     USHORT usShareAccess;
-    BOOLEAN bRemoveAccess = FALSE;
     BOOLEAN bAllocatedCcb = FALSE;
     BOOLEAN bReleaseFcb = FALSE, bAllocatedFcb = FALSE;
     AFSObjectInfoCB *pParentObject = NULL, *pTargetObject = NULL;
@@ -2285,13 +2297,6 @@ try_exit:
 
             *Ccb = NULL;
 
-            if( bRemoveAccess)
-            {
-
-                IoRemoveShareAccess( pFileObject,
-                                     &pParentObject->Fcb->ShareAccess);
-            }
-
             if( bAllocatedFcb)
             {