From 592ac97728e091e3f126f0c05255255b565c5500 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 5 Sep 2011 13:11:37 +0200 Subject: s4:ntvfs: s/!= PROTOCOL_SMB2/< PROTOCOL_SMB2_02/ metze --- source4/ntvfs/posix/pvfs_setfileinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs/posix/pvfs_setfileinfo.c') diff --git a/source4/ntvfs/posix/pvfs_setfileinfo.c b/source4/ntvfs/posix/pvfs_setfileinfo.c index 92fe0148e3..cbb5c7853c 100644 --- a/source4/ntvfs/posix/pvfs_setfileinfo.c +++ b/source4/ntvfs/posix/pvfs_setfileinfo.c @@ -130,7 +130,7 @@ static NTSTATUS pvfs_setfileinfo_rename(struct pvfs_state *pvfs, /* renames are only allowed within a directory */ if (strchr_m(info->rename_information.in.new_name, '\\') && - (req->ctx->protocol != PROTOCOL_SMB2)) { + (req->ctx->protocol < PROTOCOL_SMB2_02)) { return NT_STATUS_NOT_SUPPORTED; } @@ -143,7 +143,7 @@ static NTSTATUS pvfs_setfileinfo_rename(struct pvfs_state *pvfs, /* w2k3 does not appear to allow relative rename. On SMB2, vista sends it sometimes, but I suspect it is just uninitialised memory */ if (info->rename_information.in.root_fid != 0 && - (req->ctx->protocol != PROTOCOL_SMB2)) { + (req->ctx->protocol < PROTOCOL_SMB2_02)) { return NT_STATUS_INVALID_PARAMETER; } -- cgit