summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-10-29 13:21:29 +0000
committerSimo Sorce <idra@samba.org>2001-10-29 13:21:29 +0000
commita972d2c448d0c54c0cf0319c1a0ef5fec27b68d6 (patch)
tree125edfc0918b2501354ab07bf6c54c5290d363be /source3/smbd
parent95aa4c6bbe99f7883bbe3a08e0072685dc04c091 (diff)
downloadsamba-a972d2c448d0c54c0cf0319c1a0ef5fec27b68d6.tar.gz
samba-a972d2c448d0c54c0cf0319c1a0ef5fec27b68d6.tar.bz2
samba-a972d2c448d0c54c0cf0319c1a0ef5fec27b68d6.zip
another few changes to the new mangle code
(This used to be commit 92f953c156a39b54230c52c6102a319a4a5ca798)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/reply.c29
1 files changed, 27 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 852a2d867b..ca7bcb9c5f 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3000,8 +3000,20 @@ NTSTATUS rename_internals(connection_struct *conn,
* Tine Smukavec <valentin.smukavec@hermes.si>.
*/
+#if 0
if (!rc && is_mangled(mask))
check_mangled_cache( mask );
+#endif
+ if (!rc)
+ {
+ char *unmangled;
+
+ unmangled = dos_unmangle(mask);
+ if (unmangled)
+ strncpy(mask, unmangled, strlen(unmangled) + 1);
+
+ SAFE_FREE(unmangled);
+ }
has_wild = ms_has_wild(mask);
@@ -3350,8 +3362,21 @@ int reply_copy(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
* Tine Smukavec <valentin.smukavec@hermes.si>.
*/
- if (!rc && is_mangled(mask))
- check_mangled_cache( mask );
+#if 0
+ if (!rc && is_mangled(mask))
+ check_mangled_cache( mask );
+#endif
+ if (!rc)
+ {
+ char *unmangled;
+
+ unmangled = dos_unmangle(mask);
+ if (unmangled)
+ strncpy(mask, unmangled, strlen(unmangled) + 1);
+
+ SAFE_FREE(unmangled);
+ }
+
has_wild = ms_has_wild(mask);