metze [Wed, 15 Aug 2007 09:12:53 +0000 (09:12 +0000)]
merge from SAMBA_4_0:
length_is() isn't supported without size_is().
I assume what we need is an array of strings,
so the code isn't used and broken anyway without
a testsuite...just get rid of the pidl warning
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24450
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jra [Wed, 15 Aug 2007 01:54:37 +0000 (01:54 +0000)]
Convert SMBwritebraw. No test suite unfortunately.... I need to write one for this.
Jeremy
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24445
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 21:53:48 +0000 (21:53 +0000)]
Convert reply_find[n]close to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24444
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 21:32:52 +0000 (21:32 +0000)]
Convert reply_search/fclose to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24443
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 21:21:52 +0000 (21:21 +0000)]
Convert reply_copy to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24442
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 21:13:05 +0000 (21:13 +0000)]
Convert reply_ioctl to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24441
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 21:07:44 +0000 (21:07 +0000)]
Convert the reply_sendXX functions to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24440
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 20:55:24 +0000 (20:55 +0000)]
Convert reply_get/setattrE to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24439
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 20:43:02 +0000 (20:43 +0000)]
Use dump_data_pw() instead of dump_data() on sensitive data in winbindd.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24438
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 20:26:35 +0000 (20:26 +0000)]
Remove "done" in winbindd_raw_kerberos_login() as well.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24437
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 20:20:51 +0000 (20:20 +0000)]
Convert reply_lockread/writeunlock to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24436
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 20:11:47 +0000 (20:11 +0000)]
Fix typo.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24435
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 20:06:11 +0000 (20:06 +0000)]
Simplify winbindd_raw_kerberos_login().
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24434
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 20:02:11 +0000 (20:02 +0000)]
Convert reply_ntrename to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24433
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 19:47:57 +0000 (19:47 +0000)]
Expand kerberos_return_pac() so that it can be used in winbindd.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24432
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 19:45:24 +0000 (19:45 +0000)]
Convert the reply_printXX calls to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24431
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 19:29:02 +0000 (19:29 +0000)]
Convert reply_writeclose to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24430
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 19:20:25 +0000 (19:20 +0000)]
reply_setdir is not used...
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24429
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 19:09:37 +0000 (19:09 +0000)]
Convert reply_unlock to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24428
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 18:52:58 +0000 (18:52 +0000)]
Convert reply_lock to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24427
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 18:33:29 +0000 (18:33 +0000)]
Convert reply_read to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24426
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 18:16:04 +0000 (18:16 +0000)]
Convert reply_write to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24425
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 16:04:37 +0000 (16:04 +0000)]
Fix the build.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24424
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 16:04:31 +0000 (16:04 +0000)]
Convert reply_lseek to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24423
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 15:42:39 +0000 (15:42 +0000)]
Convert reply_ctemp to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24422
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 15:40:49 +0000 (15:40 +0000)]
Ignore long #defines (like for registry keys).
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24421
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 15:34:34 +0000 (15:34 +0000)]
Pure pedantism: the talloc_init could have failed...
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24420
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 15:31:36 +0000 (15:31 +0000)]
Hm, I think this protoype is not required here.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24419
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 15:29:42 +0000 (15:29 +0000)]
Adding reg_deleteallvalues().
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24418
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 15:26:54 +0000 (15:26 +0000)]
Convert reply_setatr to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24417
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 15:17:50 +0000 (15:17 +0000)]
Some more minor edits for libgpo, mostly reformatting and moving of functions.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24416
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 15:09:49 +0000 (15:09 +0000)]
Convert reply_getatr to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24415
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 14:50:49 +0000 (14:50 +0000)]
Convert reply_mv to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24414
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Tue, 14 Aug 2007 14:47:08 +0000 (14:47 +0000)]
Minor edits for libgpo.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24413
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 14:31:55 +0000 (14:31 +0000)]
Convert reply_open to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24412
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
derrell [Tue, 14 Aug 2007 14:27:42 +0000 (14:27 +0000)]
- I got tricked by function naming. Contrary to what seemed obvious to me,
prs_mem_free() is not the function to be called to free memory allocated by
prs_alloc_mem(). I've added a comment so others may not get bitten too.
- Remove incorrect memory free calls added yesterday to replace SAFE_FREE.
The memory is actually now on a talloc context, so gets freed by the caller
when that context is freed. We don't need to free it iternally.
Derrell
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24410
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 13:57:36 +0000 (13:57 +0000)]
Check wct in reply_open
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24409
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 13:38:14 +0000 (13:38 +0000)]
Remove reply_prep_legacy from reply_lockingX
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24408
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 10:47:47 +0000 (10:47 +0000)]
Push reply_prep_legacy into reply_lockingX
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24406
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 10:27:27 +0000 (10:27 +0000)]
Check wct in reply_lockingX
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24405
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 10:06:33 +0000 (10:06 +0000)]
Remove get_OutBuffer usage from blocking.c
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24404
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 08:44:00 +0000 (08:44 +0000)]
Remove reply_prep_legacy from send_nttrans_replies
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24403
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 08:29:36 +0000 (08:29 +0000)]
Fix a 64-bit warning
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24402
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 08:24:02 +0000 (08:24 +0000)]
Push reply_prep_legacy into send_nt_replies
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24401
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 08:23:54 +0000 (08:23 +0000)]
Fix a valgrind bug
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24400
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 07:58:56 +0000 (07:58 +0000)]
Change change_notify_reply to use send_nt_replies_new
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24399
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 07:39:11 +0000 (07:39 +0000)]
Convert call_nt_transact_notify_change to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24398
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 06:52:30 +0000 (06:52 +0000)]
Convert call_nt_transact_rename to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24394
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 06:21:02 +0000 (06:21 +0000)]
Convert call_nt_transact_set_user_quota to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24393
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 06:18:55 +0000 (06:18 +0000)]
Minor simplifications
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24392
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Tue, 14 Aug 2007 05:58:13 +0000 (05:58 +0000)]
Convert call_nt_transact_get_user_quota to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24391
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
derrell [Tue, 14 Aug 2007 03:02:34 +0000 (03:02 +0000)]
- ACL retrieval provided incomplete information because the buffer pointer was
incremented too far in some circumstances. In these cases, only the first
of multiple concatenated strings would be seen.
- Working on bug 4649 pertaining to delete an ACL, this fixes the reported
crash. It appears to have been an incomplete switchover from malloc to
talloc, as the memory was still being freed with SAFE_FREE.
Deleting ACLs still doesn't work. Although a valid request is sent to the
server and a SUCCESS response is returned, the method that's used in
libsmbclient for deleting ACLs seems to be incorrect. In looking at the
samba4 torture tests, it appears that we should be turning on the INHERIT
flag if we want to delete the ACL. (I could use some assistance on the
proper flags to send, from anyone familiar with this stuff.)
- Apply patch from SATOH Fumiyasu to fix bug 4750. smbc_telldir_ctx() was not
returning a value useful to smbc_lseekdir_ctx().
Derrell
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24388
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jra [Tue, 14 Aug 2007 01:45:26 +0000 (01:45 +0000)]
Convert readbraw to the new api. Volker, keep checking in
your patches please :-). I'll work on SMBreadBmpx tomorrow.
Jeremy.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24387
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jra [Mon, 13 Aug 2007 20:29:24 +0000 (20:29 +0000)]
Piss off Volker (not deliberately) by checking in a reply_mknew -> conversion.
Sorry vl, remove one of your 15 patches :-).
Jeremy.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24386
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 20:16:33 +0000 (20:16 +0000)]
Convert call_nt_transact_query_security_desc to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24385
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 19:59:00 +0000 (19:59 +0000)]
Convert call_nt_transact_set_security_desc to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24384
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 19:58:28 +0000 (19:58 +0000)]
Convert call_nt_transact_ioctl to the new API
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24383
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 19:22:07 +0000 (19:22 +0000)]
Remove reply_prep_legacy from call_nt_transact_create
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24382
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 19:03:52 +0000 (19:03 +0000)]
Push reply_prep_legacy into call_nt_transact_create
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24381
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 15:41:29 +0000 (15:41 +0000)]
Push down reply_prep_legacy one level
Not pretty, but necessary to convert the calls one by one
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24368
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 15:40:37 +0000 (15:40 +0000)]
Push reply_prep_legacy into handle_nttrans
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24367
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 14:40:56 +0000 (14:40 +0000)]
Initialize padding also when no params are sent back
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24362
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 14:29:44 +0000 (14:29 +0000)]
Push reply_prep_legacy down in reply_nttrans[s]
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24361
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
gd [Mon, 13 Aug 2007 13:05:17 +0000 (13:05 +0000)]
Make ndr_print_debug_helper() output readable.
Guenther
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24360
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 09:49:03 +0000 (09:49 +0000)]
Fix the build
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24359
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 09:12:21 +0000 (09:12 +0000)]
Push reply_prep_legacy into reply_nttrans[s]
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24358
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 08:50:09 +0000 (08:50 +0000)]
Check wct in reply_nttrans[s]
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24357
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Mon, 13 Aug 2007 08:33:01 +0000 (08:33 +0000)]
Add send_nt_replies_new wrapper
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24356
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Mon, 13 Aug 2007 07:20:19 +0000 (07:20 +0000)]
move reply_outbuf() to the place where it's used
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24355
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sun, 12 Aug 2007 21:23:06 +0000 (21:23 +0000)]
Remove offsetof macro
Samba4 seems not to suffer from it
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24354
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
kai [Sun, 12 Aug 2007 17:36:42 +0000 (17:36 +0000)]
Add a getpwuid lookup to wbinfo.
Merged from my Samba4 GSoC branch.
Volker, can you check if that's done the way you thought?
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24353
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sun, 12 Aug 2007 12:57:56 +0000 (12:57 +0000)]
Remove reply_prep_legacy from reply_read_and_X
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24351
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sun, 12 Aug 2007 12:15:32 +0000 (12:15 +0000)]
For large read&x we need more than 64k of outbuf.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24349
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sun, 12 Aug 2007 11:40:27 +0000 (11:40 +0000)]
Do not use inbuf/outbuf in the sendfile path of read_and_X
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24348
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sun, 12 Aug 2007 11:22:26 +0000 (11:22 +0000)]
fake_sendfile does not need Inbuf/Outbuf
In the future, we might put the new Linux splice(2) syscall here. This
should also work for reply_write, but getting that in is a bit trickier.
We need to decide very early before fetching the whole buffer that we
have a write call.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24347
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sun, 12 Aug 2007 09:16:54 +0000 (09:16 +0000)]
Push reply_prep_legacy into send_file_readX
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24346
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Sun, 12 Aug 2007 01:06:02 +0000 (01:06 +0000)]
Make libreplace provide offsetof.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24341
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
jelmer [Sun, 12 Aug 2007 00:55:03 +0000 (00:55 +0000)]
Use standard data type uint32_t rather than tdb-specific u32.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24340
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 16:28:10 +0000 (16:28 +0000)]
schedule_aio_read_and_X does not need InBuf/OutBuf
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24332
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 16:20:27 +0000 (16:20 +0000)]
Fix an error where gid_t != 32 bit
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24331
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 16:18:11 +0000 (16:18 +0000)]
Fix a 64-bit error
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24330
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 16:15:39 +0000 (16:15 +0000)]
Fix a 64-bit bug
enums are not necessarily represented as 32-bit uints. On assignment
(see line 1029) implicit conversion happens, but not when pointers are
taken.
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24329
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 15:02:58 +0000 (15:02 +0000)]
Restore chain_reply error handling
Get the whole smb header from the second chained function, in particular
the error fields
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24328
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 14:37:39 +0000 (14:37 +0000)]
First round of fixes to chain_reply
The argument to smb_setlen does not contain the nbt header of 4 bytes
The chained function might allocate outbuf itself (as now happens with
reply_read_and_X). This would erroneously overwrite the caller's outbuf.
Give it an outbuf pointer of it's own
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24327
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 11:50:53 +0000 (11:50 +0000)]
Fix the build for Solaris CC
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24326
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 11:20:21 +0000 (11:20 +0000)]
Push down reply_prep_legacy in reply_read_and_X
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24325
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 10:53:36 +0000 (10:53 +0000)]
No reply_prep_legacy() in reply_pipe_read_and_X
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24324
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 10:40:35 +0000 (10:40 +0000)]
Remove the reply_read_and_X wrapper function
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24323
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 10:26:40 +0000 (10:26 +0000)]
Wrap reply_read_and_X in reply_prep_legacy
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24322
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Sat, 11 Aug 2007 09:53:42 +0000 (09:53 +0000)]
Attempt to fix the "hape" cc build
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24321
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 10 Aug 2007 21:34:55 +0000 (21:34 +0000)]
Fix the wct checks in reply_trans2 and the reply_trans calls
No idea what I've been smoking here.
Thanks to Stefan for closely looking
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24320
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 10 Aug 2007 21:33:58 +0000 (21:33 +0000)]
Check wct in reply_read_and_X
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24319
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 10 Aug 2007 20:53:27 +0000 (20:53 +0000)]
Print a prominent warning when reply_prep_legacy is called
This is a temporary function anyway
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24318
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 10 Aug 2007 20:03:31 +0000 (20:03 +0000)]
Fix an uninitialized read
Jerry, please check this!
Thanks,
Volker
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24316
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
vlendec [Fri, 10 Aug 2007 14:01:14 +0000 (14:01 +0000)]
Attempt to fix bug 4868
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24314
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 10 Aug 2007 10:31:28 +0000 (10:31 +0000)]
revision 24091 removed the 'FORCE'...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24312
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 10 Aug 2007 10:28:09 +0000 (10:28 +0000)]
add a reply_force_nterror() macro
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24311
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 10 Aug 2007 10:15:25 +0000 (10:15 +0000)]
we should not call END_PROFILE(SMBntcreateX); twice...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24310
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 10 Aug 2007 10:11:40 +0000 (10:11 +0000)]
if no protocol matches, just return choise 0xffff
as we've done before revision 24002
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24309
0c0555d6-39d7-0310-84fc-
f1cc0bd64818
metze [Fri, 10 Aug 2007 09:57:30 +0000 (09:57 +0000)]
this needs a better fix that compiles...
metze
git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_3_2@24308
0c0555d6-39d7-0310-84fc-
f1cc0bd64818