1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00
samba-mirror/source3/smbd
Jeremy Allison ce010d0027 s3: smb2: Move from using SBVAL to put NTTIMEs on the wire to put_long_date_timespec.
put_long_date_timespec() correctly calls round_timespec()
on the time parameters, and is the correct function to
use when writing *any* file-based NTTIME on the wire.

The smb2_close() code being modified already did this by
hand, and so this doesn't change any of the functionality, only
makes the SMB2 code match all of the other server
code in Samba. Move from using NTTIME variables internally
in the server to struct timespec variables, which is
what all the other server code uses. Only map to
NTTIME as the last step of marshalling the output
data.

Not following the put_long_date_timespec()
convention in the SMB2 create code caused the
round_timespec() step to have been missed in
that code.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
2014-05-23 20:16:12 +02:00
..
aio.c s3 : smbd : Protect all possible code paths from fsp->op == NULL. 2014-05-02 21:27:07 +02:00
avahi_register.c
blocking.c smbd: Fix blank line endings 2013-09-11 08:27:10 +02:00
close.c param: rename lp function and variable from "magicscript" to "magic_script" 2014-02-07 16:19:13 -08:00
conn_idle.c Fix bug #9733 - smbcontrol close-share is not working. 2013-03-22 20:10:11 +01:00
conn_msg.c s3:smbd/conn_msg: use talloc_get_type_abort() as private_data can't be NULL 2011-12-14 12:00:07 +01:00
conn.c Add uint32_t share_access to vuid_cache_entry. 2013-01-09 15:28:48 +11:00
connection.c s3:smbd: remove unused claim_connection/yield_connection 2012-10-19 12:15:03 +02:00
dfree.c param: rename lp function and variable from "maxdisksize" to "max_disk_size" 2014-02-07 16:19:16 -08:00
dir.c param: rename lp function and variable from "hideunwriteable_files" to "hide_unwriteable_files" 2014-02-07 16:19:11 -08:00
dmapi.c smbd: Fix compile warning in dmapi.c 2014-05-02 03:41:31 +02:00
dnsregister.c
dosmode.c smbd: Remove unused code for dos attributes in stat struct 2014-05-14 01:35:41 +02:00
durable.c smbd:smb2: fix durable reconnect: set fsp->fnum from the smbXsrv_open->local_id 2014-01-30 16:57:06 +01:00
error.c s3-smbd: Avoid starting log lines with the word 'error' 2012-02-16 15:21:11 +11:00
fake_file.c Add 'bool use_privs' to smbd_calculate_access_mask(). 2012-09-15 00:37:49 +02:00
file_access.c smbd: Convert can_delete_file_in_directory to synthetic_smb_fname 2013-04-17 14:50:01 -07:00
fileio.c param: rename lp function and variable from "syncalways" to "sync_always" 2014-02-07 16:19:16 -08:00
filename.c param: rename lp function and variable from "symlinks" to "follow_symlinks" 2014-02-07 16:19:13 -08:00
files.c s3: smbd : Ensure file_new doesn't call into smbXsrv_open_create() for INTERNAL_OPEN_ONLY. 2014-05-02 21:27:07 +02:00
globals.c s3:smbd: move initialization of the smbd_shim from smbd_init_globals() to main() 2012-10-19 12:14:58 +02:00
globals.h s3:smb2_server: only allocate the required buffer in the smb2 recvfile() code path 2014-04-11 21:41:08 +02:00
ipc.c s3:smbd: take less than SMB_BUFFER_SIZE_MIN ('500') as header overhead in ipc.c 2014-03-05 10:06:24 -08:00
lanman.c CVE-2013-4496:samr: Remove ChangePasswordUser 2014-03-13 10:26:03 +01:00
mangle_hash2.c Fix is_legal_name() to not emit character conversion error messages. 2013-09-11 16:38:43 -07:00
mangle_hash.c param: rename lp function and variable from 'magicchar' to 'mangling_char' 2014-02-07 16:19:10 -08:00
mangle.c param: rename lp function and variable from 'defaultcase' to 'default_case' 2014-02-07 16:19:10 -08:00
message.c s3:smbd: let srvstr_pull_req_talloc() take 'const uint8_t *src' 2014-04-02 09:03:43 +02:00
msdfs.c loadparm: rename lp[cfg]_pathname to lp[cfg]_path for consistency with docs 2014-02-03 13:26:13 +13:00
negprot.c s3:smbd: always allow SMB1 signing, but only announce it if configured. 2014-04-16 10:07:56 +02:00
notify_inotify.c Fix memory leak in error code path. 2013-07-18 03:22:37 +02:00
notify_internal.c smbd: Pass on a timestamp in MSG_PVFS_NOTIFY 2014-04-23 22:33:08 +02:00
notify.c smbd: Sort notify events by timestamp 2014-04-23 22:33:08 +02:00
ntquotas.c lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent. 2012-03-24 15:23:02 +01:00
nttrans.c smbd: Always use UCF_PREP_CREATEFILE for filename_convert calls to resolve a path for open. 2013-12-09 21:02:21 +01:00
open.c s3: smbd: Remove open_file_fchmod(). 2014-05-02 23:47:38 +02:00
oplock_irix.c param: rename lp function and variable from 'lockdir' to 'lock_directory' 2014-02-07 16:19:10 -08:00
oplock_linux.c Wrap setting leases in become_root()/unbecome_root() to ensure correct delivery of signals. 2013-07-31 17:07:58 -07:00
oplock.c Rename the profile enums with a SAMBA_ prefix to avoid conflict with system files. 2013-11-22 08:56:38 -08:00
password.c loadparm: rename lp[cfg]_pathname to lp[cfg]_path for consistency with docs 2014-02-03 13:26:13 +13:00
perfcount.c loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *. 2012-07-18 15:07:23 +09:30
pipes.c s3-rpc_server: Pass the server event context to np_open(). 2013-10-29 16:27:18 +01:00
posix_acls.c Fix bug 10196 - RW Deny for a specific user is not overriding RW Allow for a group. 2013-10-24 14:20:04 +02:00
process.c s3:smbd: avoid compiler warnings in smbd_tevent_trace_callback() 2014-04-02 09:03:43 +02:00
proto.h s3: smbd: Remove open_file_fchmod(). 2014-05-02 23:47:38 +02:00
pysmbd.c pysmbd: improve the return of error codes in the python smbd bindings 2014-02-05 08:42:25 +01:00
quotas.c quota: move function again to its belonging ifdef block 2012-09-11 04:44:28 +02:00
reply.c s3: smbd : Fix wildcard unlink to fail if we get an error rather than trying to continue. 2014-04-30 14:52:08 +02:00
scavenger.c s3 : smbd : Protect all possible code paths from fsp->op == NULL. 2014-05-02 21:27:07 +02:00
scavenger.h s3:smbd: add a scavenger process for disconnected durable handles 2013-04-18 13:15:13 +02:00
seal.c lib-util: rename memdup to smb_memdup and fix all callers 2014-04-16 20:39:08 +02:00
sec_ctx.c s3: use smb_xmemdup instead of smb_memdup and smb_panic 2014-04-16 22:53:42 +02:00
server_exit.c s3:smbd: maintain smbd_server_connection->status 2014-02-21 11:48:12 +01:00
server_reload.c param: No longer have a special case for lp_configfile 2014-02-12 13:17:13 +13:00
server.c s3: smbd: Call dgram cleanup init background setup. 2014-04-23 22:33:09 +02:00
service.c s3:smbd: fix typo in comment for set_conn_force_user_group() 2014-04-23 01:49:09 +02:00
session.c s3:smbd/session: Added a routine find_sessions() 2013-09-10 11:32:46 -07:00
sesssetup.c s3-auth: Finally change make_user_info_*() use a parent talloc context 2014-04-02 11:05:46 +02:00
share_access.c param: rename lp function and variable from "writelist" to "write_list" 2014-02-07 16:19:16 -08:00
signing.c s3:smbd: always allow SMB1 signing, but only announce it if configured. 2014-04-16 10:07:56 +02:00
smb2_break.c s3:smb2_break: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:20 -08:00
smb2_close.c s3: smb2: Move from using SBVAL to put NTTIMEs on the wire to put_long_date_timespec. 2014-05-23 20:16:12 +02:00
smb2_create.c s3:smb2_create: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:21 -08:00
smb2_find.c s3:smb2_find: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:21 -08:00
smb2_flush.c s3:smb2_flush: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:21 -08:00
smb2_getinfo.c s3:smb2_getinfo: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:21 -08:00
smb2_glue.c Add function smbd_smb2_unread_bytes(). 2013-04-19 14:10:51 -07:00
smb2_ioctl_dfs.c smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smb2_ioctl_filesys.c smb2/ioctl: add support for FSCTL_[GET/SET]_COMPRESSION 2013-11-22 08:56:45 -08:00
smb2_ioctl_named_pipe.c smbd: Fix CID 1035550 Structurally dead code 2013-08-12 17:25:54 +12:00
smb2_ioctl_network_fs.c smbd: Fix memory overwrites 2014-02-07 20:07:23 +01:00
smb2_ioctl_private.h smb2_ioctl: split ioctl handler code on device type 2013-01-16 23:15:06 +01:00
smb2_ioctl.c s3:smb2_ioctl: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:21 -08:00
smb2_keepalive.c s3:smb2_keepalive: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:22 -08:00
smb2_lock.c s3:smb2_lock: return RANGE_NOT_LOCKED instead of CANCELLED for logoff and tdis 2014-03-12 09:27:37 -07:00
smb2_negprot.c s3:smb2_negprot: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:22 -08:00
smb2_notify.c s3:smb2_notify: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:22 -08:00
smb2_read.c s3:smb2_read: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:22 -08:00
smb2_server.c s3:smb2_server: remove unused get_min_receive_file_size() wrapper function 2014-04-11 23:55:17 +02:00
smb2_sesssetup.c s3:smb2_sesssetup: cancel and wait for pending requests on logoff 2014-03-12 09:27:38 -07:00
smb2_setinfo.c s3:smb2_setinfo: make use of smbd_smb2_generate_outbody() 2014-03-05 13:59:22 -08:00
smb2_tcon.c s3:smb2_tcon: cancel and wait for pending requests on tdis 2014-03-12 09:27:38 -07:00
smb2_write.c s3:smb2_write: allow SMBD_SMB2_IN_DYN_LEN() to be 0 for the recvfile case. 2014-04-11 21:41:08 +02:00
smbd.h smbd: change flag name from UCF_CREATING_FILE to UCF_PREP_CREATEFILE 2013-12-09 09:48:48 -08:00
smbXsrv_open.c s3:smbXsrv_open: allow now==0 to skip the idle_time update. 2014-04-11 21:41:08 +02:00
smbXsrv_session.c dbwrap: add a dbwrap_flags argument to db_open() 2014-02-07 16:06:06 +01:00
smbXsrv_tcon.c dbwrap: add a dbwrap_flags argument to db_open() 2014-02-07 16:06:06 +01:00
smbXsrv_version.c dbwrap: add a dbwrap_flags argument to db_open() 2014-02-07 16:06:06 +01:00
srvstr.c
statcache.c
statvfs.c Typo: s/prefered/preferred/ 2014-04-13 16:55:05 +02:00
trans2.c param: add const to a local variable to prevent a warning about lp_fstype 2014-02-20 10:11:28 +13:00
uid.c param: rename lp function and variable from 'guestaccount' to 'guest_account' 2014-02-07 16:19:10 -08:00
utmp.c param: rename lp function and variable from 'wtmpdir' to 'wtmp_directory' 2014-02-07 16:19:11 -08:00
vfs.c s3: smbd: Performance optimization for RECVFILE. 2014-04-10 19:49:07 +02:00