summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2002-02-27 21:46:53 +0000
committerJeremy Allison <jra@samba.org>2002-02-27 21:46:53 +0000
commit2da4d64cfcf289d18d622c67d3250c51e6b88466 (patch)
treee6e8897eff144ae4f8cc6a79b94760a737d2e1bb /source3/smbd/reply.c
parent9e2a06611d5ab7e2dbba7e9fbc84e1fcae0c58ed (diff)
downloadsamba-2da4d64cfcf289d18d622c67d3250c51e6b88466.tar.gz
samba-2da4d64cfcf289d18d622c67d3250c51e6b88466.tar.bz2
samba-2da4d64cfcf289d18d622c67d3250c51e6b88466.zip
Added "nt status support" parameter. Fix offline synchronisation.
Jeremy. (This used to be commit 9243a9778e52999d5c62cba484640637b24994d8)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index c7f805122d..0a349a9c8a 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -482,9 +482,8 @@ int reply_getatr(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
put_dos_date3(outbuf,smb_vwv1,mtime);
SIVAL(outbuf,smb_vwv3,(uint32)size);
- if (Protocol >= PROTOCOL_NT1) {
- SSVAL(outbuf,smb_flg2,SVAL(outbuf, smb_flg2) | 0x40); /* IS_LONG_NAME */
- }
+ if (Protocol >= PROTOCOL_NT1)
+ SSVAL(outbuf,smb_flg2,SVAL(outbuf, smb_flg2) | FLAGS2_IS_LONG_NAME);
DEBUG( 3, ( "getatr name=%s mode=%d size=%d\n", fname, mode, (uint32)size ) );
@@ -760,9 +759,8 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
SCVAL(smb_buf(outbuf),0,5);
SSVAL(smb_buf(outbuf),1,numentries*DIR_STRUCT_SIZE);
- if (Protocol >= PROTOCOL_NT1) {
- SSVAL(outbuf,smb_flg2,SVAL(outbuf, smb_flg2) | 0x40); /* IS_LONG_NAME */
- }
+ if (Protocol >= PROTOCOL_NT1)
+ SSVAL(outbuf,smb_flg2,SVAL(outbuf, smb_flg2) | FLAGS2_IS_LONG_NAME);
outsize += DIR_STRUCT_SIZE*numentries;
smb_setlen(outbuf,outsize - 4);