local.h: Fix spelling mistake :-).
[kai/samba.git] / source3 / smbd / trans2.c
index 7f46604cce9dcade4c038b0e0367a2d0425ba967..092a069a6e33b4a66d7d5fe24c3c453466df293c 100644 (file)
@@ -608,13 +608,15 @@ static int call_trans2findfirst(char *inbuf, char *outbuf, int bufsize, int cnum
       unix_ERR_code = ERRbadpath;
     }
 
       unix_ERR_code = ERRbadpath;
     }
 
-    /* Ugly - NT specific hack - but needed (JRA) */
+#if 0
+    /* Ugly - NT specific hack - maybe not needed ? (JRA) */
     if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) && 
        (get_remote_arch() == RA_WINNT))
     {
       unix_ERR_class = ERRDOS;
       unix_ERR_code = ERRbaddirectory;
     }
     if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) && 
        (get_remote_arch() == RA_WINNT))
     {
       unix_ERR_class = ERRDOS;
       unix_ERR_code = ERRbaddirectory;
     }
+#endif 
 
     return(ERROR(ERRDOS,ERRbadpath));
   }
 
     return(ERROR(ERRDOS,ERRbadpath));
   }
@@ -651,13 +653,16 @@ static int call_trans2findfirst(char *inbuf, char *outbuf, int bufsize, int cnum
           unix_ERR_code = ERRbadpath;
         }
 
           unix_ERR_code = ERRbadpath;
         }
 
-        /* Ugly - NT specific hack - but needed (JRA) */
+#if 0
+        /* Ugly - NT specific hack - maybe not needed ? (JRA) */
         if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) && 
            (get_remote_arch() == RA_WINNT))
         {
           unix_ERR_class = ERRDOS;
           unix_ERR_code = ERRbaddirectory;
         }
         if((errno == ENOTDIR) && (Protocol >= PROTOCOL_NT1) && 
            (get_remote_arch() == RA_WINNT))
         {
           unix_ERR_class = ERRDOS;
           unix_ERR_code = ERRbaddirectory;
         }
+#endif
+
         return (UNIXERROR(ERRDOS,ERRbadpath));
       }
       return(ERROR(ERRDOS,ERRbadpath));
         return (UNIXERROR(ERRDOS,ERRbadpath));
       }
       return(ERROR(ERRDOS,ERRbadpath));