ira/wip.git
13 years agor24481: copy .bzrignore => .gitignore
Stefan Metzmacher [Thu, 16 Aug 2007 09:14:43 +0000 (09:14 +0000)]
r24481: copy .bzrignore => .gitignore

metze
(This used to be commit 51507a0d7674301de01e3d5b107f13834a078dc0)

13 years agor24476: Fix the mappings in reply_opeXXX calls. Now to test renames.
Jeremy Allison [Thu, 16 Aug 2007 00:37:07 +0000 (00:37 +0000)]
r24476: Fix the mappings in reply_opeXXX calls. Now to test renames.
Jeremy.
(This used to be commit 74d10b09a68f5c06d6b3ceffe0a40818dc84106e)

13 years agor24475: Fix the error mapping for SMB_POSIX_PATH_OPEN.
Jeremy Allison [Thu, 16 Aug 2007 00:22:35 +0000 (00:22 +0000)]
r24475: Fix the error mapping for SMB_POSIX_PATH_OPEN.
Jeremy.
(This used to be commit 6dac315ba1d9b9582c2b573e0785b2f6d627f846)

13 years agor24474: Map error value NT_STATUS_OBJECT_NAME_COLLISION
Jeremy Allison [Wed, 15 Aug 2007 23:56:08 +0000 (23:56 +0000)]
r24474: Map error value NT_STATUS_OBJECT_NAME_COLLISION
to ERRDOS, ERRfilexists for NTCreateX and NTTransCreate.
Jeremy.
(This used to be commit 5b2316d1734765ef6c31ff09beea974d9629d17f)

13 years agor24470: Start fixing up the mapping of OBJECT_NAME_COLLISION
Jeremy Allison [Wed, 15 Aug 2007 23:05:49 +0000 (23:05 +0000)]
r24470: Start fixing up the mapping of OBJECT_NAME_COLLISION
to DOS error ERRDOS, ERRfilexists on open calls.
Jeremy.
(This used to be commit 4674486450bbe79ec9b22bcbc23c534365d6798a)

13 years agor24468: Don't forget the +4 for length :-).
Jeremy Allison [Wed, 15 Aug 2007 19:43:26 +0000 (19:43 +0000)]
r24468: Don't forget the +4 for length :-).
Jeremy.
(This used to be commit 4d01e0b7443aa4e4d450d705df5762d801172809)

13 years agor24467: Do range checking on incoming smb request.
Jeremy Allison [Wed, 15 Aug 2007 19:25:38 +0000 (19:25 +0000)]
r24467: Do range checking on incoming smb request.
Jeremy.
(This used to be commit dbd58dd647279def1681d88701e41d8a738c680a)

13 years agor24466: - Sort ACEs according to http://support.microsoft.com/kb/269175 so that
Derrell Lipman [Wed, 15 Aug 2007 17:40:26 +0000 (17:40 +0000)]
r24466: - Sort ACEs according to support.microsoft.com/kb/269175 so that
  Windows Explorer doesn't complain about the order (and so that they get
  interpreted properly).

Derrell
(This used to be commit 8f371e2ea97a3b58d1c7c3aa1368a0904295f681)

13 years agor24464: Now Volker removed the readbmpx we don't need cached errors any more.
Jeremy Allison [Wed, 15 Aug 2007 16:58:29 +0000 (16:58 +0000)]
r24464: Now Volker removed the readbmpx we don't need cached errors any more.
Jeremy.
(This used to be commit 9256ec0a20f532c7dd7ddc2d3534336a47e6c2d2)

13 years agor24462: - Removing all ACEs was causing removal of the DACL entirely. Win2000 ignored
Derrell Lipman [Wed, 15 Aug 2007 13:44:44 +0000 (13:44 +0000)]
r24462: - Removing all ACEs was causing removal of the DACL entirely.  Win2000 ignored
  the request, presumably due to the PROTECTED flag not being set.  Setting
  that flag (in make_sec_desc()) has much wider implications than just to
  libsmbclient, so instead of modifying that, we'll remove security
  descriptors by setting the number of ACEs to zero.  At some point, we might
  want to look into whether we should actually be setting the PROTECTED flag
  in the DACL.

  Reference http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsce_ctl_qxju.mspx?mfr=true

Derrell
(This used to be commit 319df380e579fd860348a8f08a584e13161dde9d)

13 years agor24461: Fix Bug 4852, thank to anto <sistemac@prosoft.ba> for reporting it.
Volker Lendecke [Wed, 15 Aug 2007 13:44:34 +0000 (13:44 +0000)]
r24461: Fix Bug 4852, thank to anto <sistemac@prosoft.ba> for reporting it.
(This used to be commit 0fecd8a0c3aaa64e137d2efd3f9cc7705837ea2a)

13 years agor24458: regenerate pidl output after pidl fixes:
Stefan Metzmacher [Wed, 15 Aug 2007 10:30:44 +0000 (10:30 +0000)]
r24458: regenerate pidl output after pidl fixes:

fixes winreg_EnumValues()

metze
(This used to be commit cedf7022c5c61ed5eb49bb1cb24b062858f7d2fd)

13 years agor24457: Convert reply_tcon to the new API
Volker Lendecke [Wed, 15 Aug 2007 10:29:47 +0000 (10:29 +0000)]
r24457: Convert reply_tcon to the new API

Jeremy, I really apologize for doing this, but I just wanted to enjoy
converting the last SMB call :-)

I've left one little task for you there, I'm not certain that checking
the inbuf length is correct here.

Volker
(This used to be commit 1e08fddafda11961f8855423b29c1f8a9a6b4457)

13 years agor24453: Remove the read and write bmpx calls
Volker Lendecke [Wed, 15 Aug 2007 09:52:09 +0000 (09:52 +0000)]
r24453: Remove the read and write bmpx calls

Talked to both Tridge and Jeremy about this, Tridge said that there is a
special error message persuading OS/2 to fall back to other methods.
The calls now checked in always return the error message we used to
return when "read bmpx = False" was set (the default): ERRSRV, ERRuseSTD.

If someone has a reproducable test case where this is really needed, we
can always dig it up from version control and convert it to the new API.
But that time without that silly parameter, and with a torture test case
for "make test" please :-)

Volker
(This used to be commit d941aae2dfd11609e807bf4ce712571a2e354627)

13 years agor24450: merge from SAMBA_4_0:
Stefan Metzmacher [Wed, 15 Aug 2007 09:12:53 +0000 (09:12 +0000)]
r24450: 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
(This used to be commit a3fd68d48582865923e18e8412ac7dca7f725c64)

13 years agor24445: Convert SMBwritebraw. No test suite unfortunately.... I need to write one...
Jeremy Allison [Wed, 15 Aug 2007 01:54:37 +0000 (01:54 +0000)]
r24445: Convert SMBwritebraw. No test suite unfortunately.... I need to write one for this.
Jeremy
(This used to be commit edc17dfcbd21cccaffb76f4ae67fe4b06520f1a9)

13 years agor24444: Convert reply_find[n]close to the new API
Volker Lendecke [Tue, 14 Aug 2007 21:53:48 +0000 (21:53 +0000)]
r24444: Convert reply_find[n]close to the new API
(This used to be commit 6af85953465789594342f2d199ef5d29462cf34f)

13 years agor24443: Convert reply_search/fclose to the new API
Volker Lendecke [Tue, 14 Aug 2007 21:32:52 +0000 (21:32 +0000)]
r24443: Convert reply_search/fclose to the new API
(This used to be commit a8a33c377e38046b4103cf1d59032b97ab6bac9a)

13 years agor24442: Convert reply_copy to the new API
Volker Lendecke [Tue, 14 Aug 2007 21:21:52 +0000 (21:21 +0000)]
r24442: Convert reply_copy to the new API
(This used to be commit 0cb00c54750837ab2d2dc12e4947fedb7d38e878)

13 years agor24441: Convert reply_ioctl to the new API
Volker Lendecke [Tue, 14 Aug 2007 21:13:05 +0000 (21:13 +0000)]
r24441: Convert reply_ioctl to the new API
(This used to be commit a5af7ebb7f1d869659fbab187652e68ec4fafbb8)

13 years agor24440: Convert the reply_sendXX functions to the new API
Volker Lendecke [Tue, 14 Aug 2007 21:07:44 +0000 (21:07 +0000)]
r24440: Convert the reply_sendXX functions to the new API
(This used to be commit a64bc31098de8694b79eeafd3a226cf519700707)

13 years agor24439: Convert reply_get/setattrE to the new API
Volker Lendecke [Tue, 14 Aug 2007 20:55:24 +0000 (20:55 +0000)]
r24439: Convert reply_get/setattrE to the new API
(This used to be commit 6b0ad071d85ddd8fbf24386db11688bde49baf81)

13 years agor24438: Use dump_data_pw() instead of dump_data() on sensitive data in winbindd.
Günther Deschner [Tue, 14 Aug 2007 20:43:02 +0000 (20:43 +0000)]
r24438: Use dump_data_pw() instead of dump_data() on sensitive data in winbindd.

Guenther
(This used to be commit adaa5e423dd022e3dc2cbe657146f3978fb59de3)

13 years agor24437: Remove "done" in winbindd_raw_kerberos_login() as well.
Günther Deschner [Tue, 14 Aug 2007 20:26:35 +0000 (20:26 +0000)]
r24437: Remove "done" in winbindd_raw_kerberos_login() as well.

Guenther
(This used to be commit 44c10bbe9477fc9e731f319e62c1358a7497e316)

13 years agor24436: Convert reply_lockread/writeunlock to the new API
Volker Lendecke [Tue, 14 Aug 2007 20:20:51 +0000 (20:20 +0000)]
r24436: Convert reply_lockread/writeunlock to the new API
(This used to be commit 1b6add251ca1db565a03407db30884132dd93e7d)

13 years agor24435: Fix typo.
Günther Deschner [Tue, 14 Aug 2007 20:11:47 +0000 (20:11 +0000)]
r24435: Fix typo.

Guenther
(This used to be commit 8705f890b11e7158b5c77cbd3a6dfae8eb26776e)

13 years agor24434: Simplify winbindd_raw_kerberos_login().
Günther Deschner [Tue, 14 Aug 2007 20:06:11 +0000 (20:06 +0000)]
r24434: Simplify winbindd_raw_kerberos_login().

Guenther
(This used to be commit 98ffae031ae641fb0ba7f2e972ab731dbe114a5f)

13 years agor24433: Convert reply_ntrename to the new API
Volker Lendecke [Tue, 14 Aug 2007 20:02:11 +0000 (20:02 +0000)]
r24433: Convert reply_ntrename to the new API
(This used to be commit 42b07a52b9f4fe147426e9156958cb4d33691678)

13 years agor24432: Expand kerberos_return_pac() so that it can be used in winbindd.
Günther Deschner [Tue, 14 Aug 2007 19:47:57 +0000 (19:47 +0000)]
r24432: Expand kerberos_return_pac() so that it can be used in winbindd.

Guenther
(This used to be commit e70bf0ecc3ec6d3ba8ba384024bbdf9a783072ea)

13 years agor24431: Convert the reply_printXX calls to the new API
Volker Lendecke [Tue, 14 Aug 2007 19:45:24 +0000 (19:45 +0000)]
r24431: Convert the reply_printXX calls to the new API
(This used to be commit e528479f56bc936cc60eb95c9738a48de48dbd05)

13 years agor24430: Convert reply_writeclose to the new API
Volker Lendecke [Tue, 14 Aug 2007 19:29:02 +0000 (19:29 +0000)]
r24430: Convert reply_writeclose to the new API
(This used to be commit 6def2ee03bb3510f000b1977c4d5293cad4ae364)

13 years agor24429: reply_setdir is not used...
Volker Lendecke [Tue, 14 Aug 2007 19:20:25 +0000 (19:20 +0000)]
r24429: reply_setdir is not used...
(This used to be commit ca27a718b07949959efaeb49f310123de76af9a0)

13 years agor24428: Convert reply_unlock to the new API
Volker Lendecke [Tue, 14 Aug 2007 19:09:37 +0000 (19:09 +0000)]
r24428: Convert reply_unlock to the new API
(This used to be commit 01c7426fc0e2af6a955dcb37111ca439fc913d5f)

13 years agor24427: Convert reply_lock to the new API
Volker Lendecke [Tue, 14 Aug 2007 18:52:58 +0000 (18:52 +0000)]
r24427: Convert reply_lock to the new API
(This used to be commit 212f43ddeaa6369e5437ed3915eb066a37bc9014)

13 years agor24426: Convert reply_read to the new API
Volker Lendecke [Tue, 14 Aug 2007 18:33:29 +0000 (18:33 +0000)]
r24426: Convert reply_read to the new API
(This used to be commit 30aada0ef8e16ce94035039b63ab140d158009d9)

13 years agor24425: Convert reply_write to the new API
Volker Lendecke [Tue, 14 Aug 2007 18:16:04 +0000 (18:16 +0000)]
r24425: Convert reply_write to the new API
(This used to be commit 244965f7b67becb85774311e6ce84318d554384d)

13 years agor24424: Fix the build.
Günther Deschner [Tue, 14 Aug 2007 16:04:37 +0000 (16:04 +0000)]
r24424: Fix the build.

Guenther
(This used to be commit 029bf26f8a571ae060f7be60fd3e8c61d86004f7)

13 years agor24423: Convert reply_lseek to the new API
Volker Lendecke [Tue, 14 Aug 2007 16:04:31 +0000 (16:04 +0000)]
r24423: Convert reply_lseek to the new API
(This used to be commit bd228853863ce5b4b9b974347c50c956d7f2e055)

13 years agor24422: Convert reply_ctemp to the new API
Volker Lendecke [Tue, 14 Aug 2007 15:42:39 +0000 (15:42 +0000)]
r24422: Convert reply_ctemp to the new API
(This used to be commit 3cc22fd74f0ffc72f4340a963b4eca7178be2192)

13 years agor24421: Ignore long #defines (like for registry keys).
Günther Deschner [Tue, 14 Aug 2007 15:40:49 +0000 (15:40 +0000)]
r24421: Ignore long #defines (like for registry keys).

Guenther
(This used to be commit b310b1dfd69ba0470b66eb84007f28e5e69e92e7)

13 years agor24420: Pure pedantism: the talloc_init could have failed...
Günther Deschner [Tue, 14 Aug 2007 15:34:34 +0000 (15:34 +0000)]
r24420: Pure pedantism: the talloc_init could have failed...

Guenther
(This used to be commit e6415c523234f60da7dcfa4de101e8634dc6927d)

13 years agor24419: Hm, I think this protoype is not required here.
Günther Deschner [Tue, 14 Aug 2007 15:31:36 +0000 (15:31 +0000)]
r24419: Hm, I think this protoype is not required here.

Guenther
(This used to be commit 42abe8450b0fc3c9f8d768fadbd5e6b0a6c1bfc3)

13 years agor24418: Adding reg_deleteallvalues().
Günther Deschner [Tue, 14 Aug 2007 15:29:42 +0000 (15:29 +0000)]
r24418: Adding reg_deleteallvalues().

Guenther
(This used to be commit f7457c6173107f1730ae2e31c5377df3dbd2454e)

13 years agor24417: Convert reply_setatr to the new API
Volker Lendecke [Tue, 14 Aug 2007 15:26:54 +0000 (15:26 +0000)]
r24417: Convert reply_setatr to the new API
(This used to be commit 56bab5ea4cbcf8e46101053bd68f66691fd737c5)

13 years agor24416: Some more minor edits for libgpo, mostly reformatting and moving of functions.
Günther Deschner [Tue, 14 Aug 2007 15:17:50 +0000 (15:17 +0000)]
r24416: Some more minor edits for libgpo, mostly reformatting and moving of functions.

Guenther
(This used to be commit 3e240672b431b7132dfb2bdd46198ab758eadd0b)

13 years agor24415: Convert reply_getatr to the new API
Volker Lendecke [Tue, 14 Aug 2007 15:09:49 +0000 (15:09 +0000)]
r24415: Convert reply_getatr to the new API
(This used to be commit 1a08b97a933e25362707cb0d8ba09d733af4cbbf)

13 years agor24414: Convert reply_mv to the new API
Volker Lendecke [Tue, 14 Aug 2007 14:50:49 +0000 (14:50 +0000)]
r24414: Convert reply_mv to the new API
(This used to be commit fa341e4840d422cee389c06112e0b2df43a31f45)

13 years agor24413: Minor edits for libgpo.
Günther Deschner [Tue, 14 Aug 2007 14:47:08 +0000 (14:47 +0000)]
r24413: Minor edits for libgpo.

Guenther
(This used to be commit 5dc791f4cfdee2bc350c1e65aeed5705c1745356)

13 years agor24412: Convert reply_open to the new API
Volker Lendecke [Tue, 14 Aug 2007 14:31:55 +0000 (14:31 +0000)]
r24412: Convert reply_open to the new API
(This used to be commit 394987f5224086cb379ea8d0364924679b8a0214)

13 years agor24410: - I got tricked by function naming. Contrary to what seemed obvious to me,
Derrell Lipman [Tue, 14 Aug 2007 14:27:42 +0000 (14:27 +0000)]
r24410: - 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
(This used to be commit 2fde343150c17959fc970b18e1eb4efde800b4db)

13 years agor24409: Check wct in reply_open
Volker Lendecke [Tue, 14 Aug 2007 13:57:36 +0000 (13:57 +0000)]
r24409: Check wct in reply_open
(This used to be commit ee6f212ed0b332e6886056e6d254d0c0da7c5046)

13 years agor24408: Remove reply_prep_legacy from reply_lockingX
Volker Lendecke [Tue, 14 Aug 2007 13:38:14 +0000 (13:38 +0000)]
r24408: Remove reply_prep_legacy from reply_lockingX
(This used to be commit e0db5fd11bd5e0a3aca801a14509fddd6a625a84)

13 years agor24406: Push reply_prep_legacy into reply_lockingX
Volker Lendecke [Tue, 14 Aug 2007 10:47:47 +0000 (10:47 +0000)]
r24406: Push reply_prep_legacy into reply_lockingX
(This used to be commit bce87ebdc00b9086dcdcc55442b57b92345971ac)

13 years agor24405: Check wct in reply_lockingX
Volker Lendecke [Tue, 14 Aug 2007 10:27:27 +0000 (10:27 +0000)]
r24405: Check wct in reply_lockingX
(This used to be commit c4972632f8b41c87a4c0fdfc6c98515c42eafda5)

13 years agor24404: Remove get_OutBuffer usage from blocking.c
Volker Lendecke [Tue, 14 Aug 2007 10:06:33 +0000 (10:06 +0000)]
r24404: Remove get_OutBuffer usage from blocking.c
(This used to be commit cb8fab5663db2cb408e1b85a7287d3670b09d503)

13 years agor24403: Remove reply_prep_legacy from send_nttrans_replies
Volker Lendecke [Tue, 14 Aug 2007 08:44:00 +0000 (08:44 +0000)]
r24403: Remove reply_prep_legacy from send_nttrans_replies
(This used to be commit a6400ca6e2301d1cfc1d6a513dc7809ed99d7b58)

13 years agor24402: Fix a 64-bit warning
Volker Lendecke [Tue, 14 Aug 2007 08:29:36 +0000 (08:29 +0000)]
r24402: Fix a 64-bit warning
(This used to be commit 73d99d6f9a5554d957ae737ff617b6a2e88b52bc)

13 years agor24401: Push reply_prep_legacy into send_nt_replies
Volker Lendecke [Tue, 14 Aug 2007 08:24:02 +0000 (08:24 +0000)]
r24401: Push reply_prep_legacy into send_nt_replies
(This used to be commit 489436a65632c4e6c1001a23dd33c896e9d7dfde)

13 years agor24400: Fix a valgrind bug
Volker Lendecke [Tue, 14 Aug 2007 08:23:54 +0000 (08:23 +0000)]
r24400: Fix a valgrind bug
(This used to be commit 7c65deaed734f5623813922637877b94fc9a6259)

13 years agor24399: Change change_notify_reply to use send_nt_replies_new
Volker Lendecke [Tue, 14 Aug 2007 07:58:56 +0000 (07:58 +0000)]
r24399: Change change_notify_reply to use send_nt_replies_new
(This used to be commit be67bb50eef88f4d56f48e785c1e5865616f5f33)

13 years agor24398: Convert call_nt_transact_notify_change to the new API
Volker Lendecke [Tue, 14 Aug 2007 07:39:11 +0000 (07:39 +0000)]
r24398: Convert call_nt_transact_notify_change to the new API
(This used to be commit 607b3ab8bc6052770f0324b57f3db6e1c11a7005)

13 years agor24394: Convert call_nt_transact_rename to the new API
Volker Lendecke [Tue, 14 Aug 2007 06:52:30 +0000 (06:52 +0000)]
r24394: Convert call_nt_transact_rename to the new API
(This used to be commit 189876a664efcfb601a8b14c21f272ed7d9f6b41)

13 years agor24393: Convert call_nt_transact_set_user_quota to the new API
Volker Lendecke [Tue, 14 Aug 2007 06:21:02 +0000 (06:21 +0000)]
r24393: Convert call_nt_transact_set_user_quota to the new API
(This used to be commit 4cb60abd4c7f32a51f0e9be0d226fe09c794bed8)

13 years agor24392: Minor simplifications
Volker Lendecke [Tue, 14 Aug 2007 06:18:55 +0000 (06:18 +0000)]
r24392: Minor simplifications
(This used to be commit 96a943587418e07019974b45c368e749a5ef82c2)

13 years agor24391: Convert call_nt_transact_get_user_quota to the new API
Volker Lendecke [Tue, 14 Aug 2007 05:58:13 +0000 (05:58 +0000)]
r24391: Convert call_nt_transact_get_user_quota to the new API
(This used to be commit 0e47a6643e9b3f546e1905e5152d3abe2511bcd9)

13 years agor24388: - ACL retrieval provided incomplete information because the buffer pointer was
Derrell Lipman [Tue, 14 Aug 2007 03:02:34 +0000 (03:02 +0000)]
r24388: - 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
(This used to be commit 2ac502e29bd8390252fe4ae8344faab49ca01ff5)

13 years agor24387: Convert readbraw to the new api. Volker, keep checking in
Jeremy Allison [Tue, 14 Aug 2007 01:45:26 +0000 (01:45 +0000)]
r24387: Convert readbraw to the new api. Volker, keep checking in
your patches please :-). I'll work on SMBreadBmpx tomorrow.
Jeremy.
(This used to be commit 27e183afa8d23dca6aada1f3810dc53aa8c55ccd)

13 years agor24386: Piss off Volker (not deliberately) by checking in a reply_mknew -> conversion.
Jeremy Allison [Mon, 13 Aug 2007 20:29:24 +0000 (20:29 +0000)]
r24386: Piss off Volker (not deliberately) by checking in a reply_mknew -> conversion.
Sorry vl, remove one of your 15 patches :-).
Jeremy.
(This used to be commit a7648ed9d40d6f61362e1488dc30216363870694)

13 years agor24385: Convert call_nt_transact_query_security_desc to the new API
Volker Lendecke [Mon, 13 Aug 2007 20:16:33 +0000 (20:16 +0000)]
r24385: Convert call_nt_transact_query_security_desc to the new API
(This used to be commit f44e0aac2b47ea377c2ce701426e57ee15c42fe7)

13 years agor24384: Convert call_nt_transact_set_security_desc to the new API
Volker Lendecke [Mon, 13 Aug 2007 19:59:00 +0000 (19:59 +0000)]
r24384: Convert call_nt_transact_set_security_desc to the new API
(This used to be commit 925ed1e186da594b5c40d3abbad885060ca87fd0)

13 years agor24383: Convert call_nt_transact_ioctl to the new API
Volker Lendecke [Mon, 13 Aug 2007 19:58:28 +0000 (19:58 +0000)]
r24383: Convert call_nt_transact_ioctl to the new API
(This used to be commit 8e6485e0782e9ab31b07dd9f662bd845f58faf4a)

13 years agor24382: Remove reply_prep_legacy from call_nt_transact_create
Volker Lendecke [Mon, 13 Aug 2007 19:22:07 +0000 (19:22 +0000)]
r24382: Remove reply_prep_legacy from call_nt_transact_create
(This used to be commit 73392485f4c3bf8b4138b500b4882c492bf96358)

13 years agor24381: Push reply_prep_legacy into call_nt_transact_create
Volker Lendecke [Mon, 13 Aug 2007 19:03:52 +0000 (19:03 +0000)]
r24381: Push reply_prep_legacy into call_nt_transact_create
(This used to be commit ca18ba96be84ed12003af84c53cc5f2e92fcc984)

13 years agor24368: Push down reply_prep_legacy one level
Volker Lendecke [Mon, 13 Aug 2007 15:41:29 +0000 (15:41 +0000)]
r24368: Push down reply_prep_legacy one level

Not pretty, but necessary to convert the calls one by one
(This used to be commit 523a463be427da0c3dbe01399e87b82b9f759512)

13 years agor24367: Push reply_prep_legacy into handle_nttrans
Volker Lendecke [Mon, 13 Aug 2007 15:40:37 +0000 (15:40 +0000)]
r24367: Push reply_prep_legacy into handle_nttrans
(This used to be commit 8b5e51c2668799890d033a371e5b9a57b8f086c6)

13 years agor24362: Initialize padding also when no params are sent back
Volker Lendecke [Mon, 13 Aug 2007 14:40:56 +0000 (14:40 +0000)]
r24362: Initialize padding also when no params are sent back
(This used to be commit 03c5e960a21ae78cdd832a5c760015f7fbd83bd9)

13 years agor24361: Push reply_prep_legacy down in reply_nttrans[s]
Volker Lendecke [Mon, 13 Aug 2007 14:29:44 +0000 (14:29 +0000)]
r24361: Push reply_prep_legacy down in reply_nttrans[s]
(This used to be commit d97a2e91d3c44ad39e6a1ee369e1e906d98707f5)

13 years agor24360: Make ndr_print_debug_helper() output readable.
Günther Deschner [Mon, 13 Aug 2007 13:05:17 +0000 (13:05 +0000)]
r24360: Make ndr_print_debug_helper() output readable.

Guenther
(This used to be commit 45ee3b55d51fcde0e5c0ea56069656d6f2647fff)

13 years agor24359: Fix the build
Volker Lendecke [Mon, 13 Aug 2007 09:49:03 +0000 (09:49 +0000)]
r24359: Fix the build
(This used to be commit b2ac1a3ec59f7c804521e5a478916fba16f4b3d4)

13 years agor24358: Push reply_prep_legacy into reply_nttrans[s]
Volker Lendecke [Mon, 13 Aug 2007 09:12:21 +0000 (09:12 +0000)]
r24358: Push reply_prep_legacy into reply_nttrans[s]
(This used to be commit 197c2310792965f94d66ad7c8016a1594945bdf8)

13 years agor24357: Check wct in reply_nttrans[s]
Volker Lendecke [Mon, 13 Aug 2007 08:50:09 +0000 (08:50 +0000)]
r24357: Check wct in reply_nttrans[s]
(This used to be commit 9ab87e644e4dc54ebbcb8ad300fe338f4a809ba9)

13 years agor24356: Add send_nt_replies_new wrapper
Volker Lendecke [Mon, 13 Aug 2007 08:33:01 +0000 (08:33 +0000)]
r24356: Add send_nt_replies_new wrapper
(This used to be commit 8a910d37ccc767eb8ab25ef2af3a136ad874346f)

13 years agor24355: move reply_outbuf() to the place where it's used
Stefan Metzmacher [Mon, 13 Aug 2007 07:20:19 +0000 (07:20 +0000)]
r24355: move reply_outbuf() to the place where it's used

metze
(This used to be commit c7ed550483233851d395edb4b8443b3296b45fb7)

13 years agor24354: Remove offsetof macro
Volker Lendecke [Sun, 12 Aug 2007 21:23:06 +0000 (21:23 +0000)]
r24354: Remove offsetof macro

Samba4 seems not to suffer from it
(This used to be commit d93b5d50a00286586c931a5876f5933a520b6ce7)

13 years agor24353: Add a getpwuid lookup to wbinfo.
Kai Blin [Sun, 12 Aug 2007 17:36:42 +0000 (17:36 +0000)]
r24353: Add a getpwuid lookup to wbinfo.

Merged from my Samba4 GSoC branch.
Volker, can you check if that's done the way you thought?
(This used to be commit f8560ea66ce522ff11d16f0e36e10853fe2639d7)

13 years agor24351: Remove reply_prep_legacy from reply_read_and_X
Volker Lendecke [Sun, 12 Aug 2007 12:57:56 +0000 (12:57 +0000)]
r24351: Remove reply_prep_legacy from reply_read_and_X
(This used to be commit 8f3e3a21008a2cb6ed73d8629aaf1fa565f19e79)

13 years agor24349: For large read&x we need more than 64k of outbuf.
Volker Lendecke [Sun, 12 Aug 2007 12:15:32 +0000 (12:15 +0000)]
r24349: For large read&x we need more than 64k of outbuf.
(This used to be commit f7e2eec35f7457ec70d75ef099b34f83c9dfd654)

13 years agor24348: Do not use inbuf/outbuf in the sendfile path of read_and_X
Volker Lendecke [Sun, 12 Aug 2007 11:40:27 +0000 (11:40 +0000)]
r24348: Do not use inbuf/outbuf in the sendfile path of read_and_X
(This used to be commit 595ea708ee8c9b6f86648dfdb5ff5a3feafe1f07)

13 years agor24347: fake_sendfile does not need Inbuf/Outbuf
Volker Lendecke [Sun, 12 Aug 2007 11:22:26 +0000 (11:22 +0000)]
r24347: 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.
(This used to be commit 32921c878a7f60251a9217173951065784077077)

13 years agor24346: Push reply_prep_legacy into send_file_readX
Volker Lendecke [Sun, 12 Aug 2007 09:16:54 +0000 (09:16 +0000)]
r24346: Push reply_prep_legacy into send_file_readX
(This used to be commit cded66a7dc72d41e4d6ea90edd8b03ed080c042f)

13 years agor24341: Make libreplace provide offsetof.
Jelmer Vernooij [Sun, 12 Aug 2007 01:06:02 +0000 (01:06 +0000)]
r24341: Make libreplace provide offsetof.
(This used to be commit 4a5fa715a6af281282092644817599f79806981d)

13 years agor24340: Use standard data type uint32_t rather than tdb-specific u32.
Jelmer Vernooij [Sun, 12 Aug 2007 00:55:03 +0000 (00:55 +0000)]
r24340: Use standard data type uint32_t rather than tdb-specific u32.
(This used to be commit 26d1430283bd4ae8b8a84f3253e33417d509c1a4)

13 years agor24332: schedule_aio_read_and_X does not need InBuf/OutBuf
Volker Lendecke [Sat, 11 Aug 2007 16:28:10 +0000 (16:28 +0000)]
r24332: schedule_aio_read_and_X does not need InBuf/OutBuf
(This used to be commit 9ad91bd20592850d7b6393e1ac7f0e0919d69668)

13 years agor24331: Fix an error where gid_t != 32 bit
Volker Lendecke [Sat, 11 Aug 2007 16:20:27 +0000 (16:20 +0000)]
r24331: Fix an error where gid_t != 32 bit
(This used to be commit 748fdfbd7ba5cc844f1370a968465b19ae698f94)

13 years agor24330: Fix a 64-bit error
Volker Lendecke [Sat, 11 Aug 2007 16:18:11 +0000 (16:18 +0000)]
r24330: Fix a 64-bit error
(This used to be commit 30fd90346550f1c672edb51ab63b8139a6c4053e)

13 years agor24329: Fix a 64-bit bug
Volker Lendecke [Sat, 11 Aug 2007 16:15:39 +0000 (16:15 +0000)]
r24329: 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.
(This used to be commit 67ec6863dd91ca2421e4541add99dfd739805242)

13 years agor24328: Restore chain_reply error handling
Volker Lendecke [Sat, 11 Aug 2007 15:02:58 +0000 (15:02 +0000)]
r24328: Restore chain_reply error handling

Get the whole smb header from the second chained function, in particular
the error fields
(This used to be commit 0eb831ca0eadb725242cb4ad75eb7008a5c18bf2)

13 years agor24327: First round of fixes to chain_reply
Volker Lendecke [Sat, 11 Aug 2007 14:37:39 +0000 (14:37 +0000)]
r24327: 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
(This used to be commit f923bba90866af14b32c0d0ab58acc00a5939fbb)

13 years agor24326: Fix the build for Solaris CC
Volker Lendecke [Sat, 11 Aug 2007 11:50:53 +0000 (11:50 +0000)]
r24326: Fix the build for Solaris CC
(This used to be commit 7af4c1f547accc973f8b3ed88958bdeaf941754a)

13 years agor24325: Push down reply_prep_legacy in reply_read_and_X
Volker Lendecke [Sat, 11 Aug 2007 11:20:21 +0000 (11:20 +0000)]
r24325: Push down reply_prep_legacy in reply_read_and_X
(This used to be commit 9d2354129dad1d4d015d463f138a196f9f72af2f)