From: Andrew Tridgell Date: Wed, 28 May 2008 11:48:40 +0000 (+1000) Subject: SMB2 doesn't have NAME_INFORMATION level X-Git-Url: http://git.samba.org/samba.git/?p=kai%2Fsamba.git;a=commitdiff_plain;h=a431d51b113c2e214ccfe7a678ba0a565b020263 SMB2 doesn't have NAME_INFORMATION level --- diff --git a/source/ntvfs/posix/pvfs_qfileinfo.c b/source/ntvfs/posix/pvfs_qfileinfo.c index c6634669852..b9f763c2e0f 100644 --- a/source/ntvfs/posix/pvfs_qfileinfo.c +++ b/source/ntvfs/posix/pvfs_qfileinfo.c @@ -216,6 +216,10 @@ static NTSTATUS pvfs_map_fileinfo(struct pvfs_state *pvfs, case RAW_FILEINFO_NAME_INFO: case RAW_FILEINFO_NAME_INFORMATION: + if (req->ctx->protocol == PROTOCOL_SMB2) { + /* strange that SMB2 doesn't have this */ + return NT_STATUS_NOT_SUPPORTED; + } info->name_info.out.fname.s = name->original_name; return NT_STATUS_OK;