r4146: an attempted fix for a OS/2 rename problem found by kukks - seems OS/2
authorAndrew Tridgell <tridge@samba.org>
Sat, 11 Dec 2004 04:11:26 +0000 (04:11 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:06:30 +0000 (13:06 -0500)
is v senstive to SMB flags2 bits
(This used to be commit c232e21218e81ac9189b651478415e9fbd67bf78)

source4/smb_server/request.c

index ccbedc7577cec5428c36b986635841c77bc28222..417d5fbcfcf97a85b30cc08d17c63101cdc5a1d7 100644 (file)
@@ -126,8 +126,10 @@ void req_setup_reply(struct smbsrv_request *req, uint_t wct, uint_t buflen)
                return;
        }
 
-       flags2 = FLAGS2_LONG_PATH_COMPONENTS | FLAGS2_EXTENDED_SECURITY;
-       flags2 |= (req->flags2 & FLAGS2_UNICODE_STRINGS);
+       flags2 = FLAGS2_LONG_PATH_COMPONENTS | 
+               FLAGS2_EXTENDED_ATTRIBUTES | 
+               FLAGS2_IS_LONG_NAME;
+       flags2 |= (req->flags2 & (FLAGS2_UNICODE_STRINGS|FLAGS2_EXTENDED_SECURITY));
        if (req->smb_conn->negotiate.client_caps & CAP_STATUS32) {
                flags2 |= FLAGS2_32_BIT_ERROR_CODES;
        }