svn commit: samba r16733 - in
branches/SAMBA_4_0/source/smb_server/smb2: .
metze at samba.org
metze at samba.org
Sat Jul 1 14:12:14 GMT 2006
Author: metze
Date: 2006-07-01 14:12:13 +0000 (Sat, 01 Jul 2006)
New Revision: 16733
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=16733
Log:
implement SMB2 SetInfo
metze
Modified:
branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c
Changeset:
Modified: branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c
===================================================================
--- branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c 2006-07-01 14:11:00 UTC (rev 16732)
+++ branches/SAMBA_4_0/source/smb_server/smb2/fileinfo.c 2006-07-01 14:12:13 UTC (rev 16733)
@@ -255,7 +255,22 @@
static NTSTATUS smb2srv_setinfo_file(struct smb2srv_setinfo_op *op, uint8_t smb2_level)
{
- return NT_STATUS_FOOBAR;
+ union smb_setfileinfo *io;
+ NTSTATUS status;
+
+ io = talloc(op, union smb_setfileinfo);
+ NT_STATUS_HAVE_NO_MEMORY(io);
+
+ /* the levels directly map to the passthru levels */
+ io->generic.level = smb2_level + 1000;
+ io->generic.in.file.ntvfs = op->info->in.file.ntvfs;
+
+ status = smbsrv_pull_passthru_sfileinfo(io, io->generic.level, io,
+ &op->info->in.blob,
+ STR_UNICODE, NULL);
+ NT_STATUS_NOT_OK_RETURN(status);
+
+ return ntvfs_setfileinfo(op->req->ntvfs, io);
}
static NTSTATUS smb2srv_setinfo_fs(struct smb2srv_setinfo_op *op, uint8_t smb2_level)
More information about the samba-cvs
mailing list