From 5ae06b99c06313d1465b03d5120e7fbf6a87b9e5 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 25 Aug 1998 02:29:17 +0000 Subject: Added code to (correctly) ignore TRANSACT2_SETFILEINFO with SMB_SET_FILE_ALLOCATION_INFO. Office 97 expects this call to succeed when you tell it you do NT SMB calls. Jeremy. (This used to be commit 260e7e27401d863e9f580d4748c577334d9fc9d0) --- source3/smbd/open.c | 2 +- source3/smbd/trans2.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 311eac07e5..e54a456092 100644 --- a/source3/smbd/open.c +++ b/source3/smbd/open.c @@ -530,7 +530,7 @@ static void open_file(files_struct *fsp,connection_struct *conn, } DEBUG(2,("%s opened file %s read=%s write=%s (numopen=%d)\n", - *sesssetup_user ? sesssetup_user : conn->user,fname, + *sesssetup_user ? sesssetup_user : conn->user,fsp->fsp_name, BOOLSTR(fsp->can_read), BOOLSTR(fsp->can_write), conn->num_files_open)); diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 1dfb488b9e..fe22a21ca1 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1566,8 +1566,10 @@ static int call_trans2setfilepathinfo(connection_struct *conn, break; } + case SMB_SET_FILE_ALLOCATION_INFO: + break; /* We don't need to do anything for this call. */ + case SMB_SET_FILE_DISPOSITION_INFO: /* not supported yet */ - case SMB_SET_FILE_ALLOCATION_INFO: /* not supported yet */ default: { return(ERROR(ERRDOS,ERRunknownlevel)); -- cgit