diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-05 13:11:37 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-09-05 13:17:34 +0200 |
commit | 592ac97728e091e3f126f0c05255255b565c5500 (patch) | |
tree | 78605c2cee975d5714c3804ce92ee0e004d529b4 /source4/ntvfs/posix/pvfs_setfileinfo.c | |
parent | 1ba5077e5f1db07662f895e068c505479be29b48 (diff) | |
download | samba-592ac97728e091e3f126f0c05255255b565c5500.tar.gz samba-592ac97728e091e3f126f0c05255255b565c5500.tar.bz2 samba-592ac97728e091e3f126f0c05255255b565c5500.zip |
s4:ntvfs: s/!= PROTOCOL_SMB2/< PROTOCOL_SMB2_02/
metze
Diffstat (limited to 'source4/ntvfs/posix/pvfs_setfileinfo.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_setfileinfo.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |