abartlet/samba.git/.git
16 years agor24314: Attempt to fix bug 4868
Volker Lendecke [Fri, 10 Aug 2007 14:01:14 +0000 (14:01 +0000)]
r24314: Attempt to fix bug 4868
(This used to be commit 0ced8fcfe124f99159061143f29775aacd6e1c8f)

16 years agor24312: revision 24091 removed the 'FORCE'...
Stefan Metzmacher [Fri, 10 Aug 2007 10:31:28 +0000 (10:31 +0000)]
r24312: revision 24091 removed the 'FORCE'...

metze
(This used to be commit 34d821daf0af6ef1e51dfd5cd99741f426d6956e)

16 years agor24311: add a reply_force_nterror() macro
Stefan Metzmacher [Fri, 10 Aug 2007 10:28:09 +0000 (10:28 +0000)]
r24311: add a reply_force_nterror() macro

metze
(This used to be commit b9ae00f4980c305f2f7334b139f9bc72fd9afbd6)

16 years agor24310: we should not call END_PROFILE(SMBntcreateX); twice...
Stefan Metzmacher [Fri, 10 Aug 2007 10:15:25 +0000 (10:15 +0000)]
r24310: we should not call END_PROFILE(SMBntcreateX); twice...

metze
(This used to be commit 7a98e09f2e4d5eff074e2d71dd1ff2f019a4547a)

16 years agor24309: if no protocol matches, just return choise 0xffff
Stefan Metzmacher [Fri, 10 Aug 2007 10:11:40 +0000 (10:11 +0000)]
r24309: if no protocol matches, just return choise 0xffff
as we've done before revision 24002

metze
(This used to be commit 6014ecbbfd50bc8f4f351dec1f9dd35c3fe62456)

16 years agor24308: this needs a better fix that compiles...
Stefan Metzmacher [Fri, 10 Aug 2007 09:57:30 +0000 (09:57 +0000)]
r24308: this needs a better fix that compiles...

metze
(This used to be commit 1a177eb08d4022c1ef7b5400ffdf426bcb9b97ff)

16 years agor24307: fill in choise with value -1 on error
Stefan Metzmacher [Fri, 10 Aug 2007 09:56:13 +0000 (09:56 +0000)]
r24307: fill in choise with value -1 on error
as we've done before revision 24002

metze
(This used to be commit 2961a35e90aae44c8560b1f4b56bfa6343c837d7)

16 years agor24306: the check_fsp() function has an explicit user argument
Stefan Metzmacher [Fri, 10 Aug 2007 09:53:42 +0000 (09:53 +0000)]
r24306: the check_fsp() function has an explicit user argument
so use it...

metze
(This used to be commit 4154bee0d91dd2ace9a7a627418f652d0d11b959)

16 years agor24304: patch from Bjoern JAcke <bj@SerNet.DE>:
Stefan Metzmacher [Fri, 10 Aug 2007 09:44:13 +0000 (09:44 +0000)]
r24304: patch from Bjoern JAcke <bj@SerNet.DE>:

attached patches add EA support for Solaris. If no one disagrees, can
someone check this in please?

metze
(This used to be commit 81e5afc363e1f0bdc4768c0f5c696f4152fe5b44)

16 years agor24302: add a module that overloads the file_id_create VFS function
Stefan Metzmacher [Fri, 10 Aug 2007 09:05:18 +0000 (09:05 +0000)]
r24302: add a module that overloads the file_id_create VFS function
and alters the device id depending on the configured algorithm.

The algorithm is configured via "fileid:algorithm":
- "fsname" (default) uses a uint64 hash over the mount point
- "fsid" uses the fsid returned from statfs()

This is needed for "clustering = yes" on some clusterfilesystems

metze
(This used to be commit 30f9171cca3e4f523cde7dfc96096c32e5af50be)

16 years agor24291: Fix Coverity ID 364
Volker Lendecke [Thu, 9 Aug 2007 20:54:58 +0000 (20:54 +0000)]
r24291: Fix Coverity ID 364

We've checked num_rids != 0 above.
(This used to be commit dab5449f385248ab1fdd60b240ef6ad4a27ba7f2)

16 years agor24290: fix debug statments to match function name
Herb Lewis [Thu, 9 Aug 2007 19:03:23 +0000 (19:03 +0000)]
r24290: fix debug statments to match function name
(This used to be commit 5ee0bfde50645b822cefefe90bc9168faeeb34ff)

16 years agor24281: Fix bug found by Herb. The vuid entry in the cli_state structure gets
Jeremy Allison [Wed, 8 Aug 2007 23:56:55 +0000 (23:56 +0000)]
r24281: Fix bug found by Herb. The vuid entry in the cli_state structure gets
left as nonzero as returned by the failed cli_session_setup_spnego. When we then try
to authenticate as the user in cli_session_setup this returns an
error "Bad userid" (as seen in wireshark).
"We should only leave cli->vuid != 0 on success. Looks like it's
getting set in the cli_session_setup_blob_receive() call and not
cleared again on error."
Jeremy.
(This used to be commit fa8e66dd8d2c68b91b27169c3c43820989f58758)

16 years agor24280: Fix the build of vfs_afsacl.c
Volker Lendecke [Wed, 8 Aug 2007 20:06:17 +0000 (20:06 +0000)]
r24280: Fix the build of vfs_afsacl.c
(This used to be commit c231f7b8f6025e2853eb6ecab43fe87566596234)

16 years agor24279: Remove reply_prep_legacy from reply_write_and_X
Volker Lendecke [Wed, 8 Aug 2007 19:05:30 +0000 (19:05 +0000)]
r24279: Remove reply_prep_legacy from reply_write_and_X
(This used to be commit f18b7a9a282ebb5c31a89a601798f9a0db51867e)

16 years agor24278: Push down reply_prep_legacy in reply_write_and_X
Volker Lendecke [Wed, 8 Aug 2007 18:40:26 +0000 (18:40 +0000)]
r24278: Push down reply_prep_legacy in reply_write_and_X

Remove the need for reply_prep_legacy for reply_pipe_write_and_X
(This used to be commit de143d5fa61aa487613dda729a43dc3d59a72899)

16 years agor24272: try to fix the build on irix...
Stefan Metzmacher [Tue, 7 Aug 2007 14:06:27 +0000 (14:06 +0000)]
r24272: try to fix the build on irix...

metze
(This used to be commit dd7e94258b0fc0157d890d71f05c6fe16b6a2ea9)

16 years agor24271: Push reply_prep_legacy into reply_write_and_X
Volker Lendecke [Tue, 7 Aug 2007 13:43:02 +0000 (13:43 +0000)]
r24271: Push reply_prep_legacy into reply_write_and_X
(This used to be commit 607e7d2447bf19eea872a3a4d1ad499a53f0a935)

16 years agor24270: Fix some END_PROFILE(SMBwriteX)
Volker Lendecke [Tue, 7 Aug 2007 13:14:49 +0000 (13:14 +0000)]
r24270: Fix some END_PROFILE(SMBwriteX)
(This used to be commit 36f2347561ab06b5d8175ad0a9c4da2817e759f9)

16 years agor24269: Check wct in reply_write_and_X
Volker Lendecke [Tue, 7 Aug 2007 13:12:46 +0000 (13:12 +0000)]
r24269: Check wct in reply_write_and_X
(This used to be commit 1297fac11778cb910d1bcd12b6d9d3a6269972db)

16 years agor24268: Fix two crashes for spoolss
Volker Lendecke [Tue, 7 Aug 2007 13:10:21 +0000 (13:10 +0000)]
r24268: Fix two crashes for spoolss

strlcpy does not like a NULL source. Fix a use-after-free.
(This used to be commit c2a214501788b5f0b6f555bd01ed310d331d07fa)

16 years agor24267: Fix the build farm
Volker Lendecke [Tue, 7 Aug 2007 11:50:03 +0000 (11:50 +0000)]
r24267: Fix the build farm

I had only tested with "net getlocalsid". posix_locking_init() calls this
with a NULL name...
(This used to be commit 3eee1fe28057e2e3da2e9d1506f57f3e35fd37b7)

16 years agor24266: Remove the "open files database hash size" parameter
Volker Lendecke [Tue, 7 Aug 2007 11:28:04 +0000 (11:28 +0000)]
r24266: Remove the "open files database hash size" parameter

This has been superseded by the "tdb_hashsize:<tdbname>" parameter
(This used to be commit df40d336afd256f05a0ec3724cc2096fb7114d81)

16 years agor24265: Add the tdb_hashsize:<tdbname> parameter
Volker Lendecke [Tue, 7 Aug 2007 11:21:48 +0000 (11:21 +0000)]
r24265: Add the tdb_hashsize:<tdbname> parameter

This makes it possible to set the default hashsize for any tdb. I would
like to remove the "open files database hash size" in favor of this one.

I'll check that removal in with the next commit, please complain/revert
if it's not ok.

Volker
(This used to be commit e9bd7a63a8d462b1fc3bab99ff843e25bffd156b)

16 years agor24254: Fix a segfault in r24102
Volker Lendecke [Mon, 6 Aug 2007 21:03:03 +0000 (21:03 +0000)]
r24254: Fix a segfault in r24102

The really pure bugfix would have replaced pparam by *pparam, but we pulled
the fid anyway.

Metze, in line 2421 the FSP_BELONGS_CONN is commented out, is that intended?
The FSCTL_CREATE_OR_GET_OBJECT_ID ioctl did not have it.

Volker
(This used to be commit 2c1376225b98a9325dfc2d00bad1722e63cf522b)

16 years agor24253: From Jan Martin <Jan.Martin@rwedea.com>.
Jeremy Allison [Mon, 6 Aug 2007 18:54:26 +0000 (18:54 +0000)]
r24253:  From Jan Martin <Jan.Martin@rwedea.com>.
----------------------------------------------------------
In rare cases, Samba 3.0.25b shows directory contents at the wrong
position in the file tree when displaying a subdirectory of a DFS link.

The problem occurs whenever Windows XP asks for a DFS referral for a
subdirectory of a DFS link with a trailing backslash.
Windows does not do this very often, but we saw it several times per day
on our central DFS server.

smbd/msdfs.c, dfs_path_lookup() does the following with the requested
path:
- in line 390, the local copy 'localpath' is 'unix_convert'ed; the
trailing backslash is removed inside unix_convert
- in lines 417-20, 'dfspath' (another copy of the requested path) is
mangled another way without removing trailing backslashes

That's why the following loop (lines 435-461) that is meant to
synchronously cut off the last path component from both strings until it
comes to a DFS link, does not handle both strings the same.  When the
original path ended with a backslash, 'canon_dfspath' has always one
component more than 'localpath', so that *consumedcntp gets too big in
line 446. This value is reported to the client.
----------------------------------------------------------

Bug #4860.

Jeremy.
(This used to be commit 42d1c6713a56197ca8dfebf74eb0d483102148f7)

16 years agor24252: Dump guid of msExchMailboxGuid when returned.
Günther Deschner [Mon, 6 Aug 2007 14:03:11 +0000 (14:03 +0000)]
r24252: Dump guid of msExchMailboxGuid when returned.

Guenther
(This used to be commit 1142f3df546cbf4780c6f54667f7ed31b1a7621b)

16 years agor24251: Neverending fun:
Günther Deschner [Mon, 6 Aug 2007 13:48:57 +0000 (13:48 +0000)]
r24251: Neverending fun:

Heimdal doesn't accept all OIDs and gss_import_name() fails with
GSS_S_BAD_NAMETYPE using this one. Use the GSS_KRB5_NT_PRINCIPAL_NAME OID
instead (which works with at least MIT 1.6.1 and Heimdal 1.0.1).

Guenther
(This used to be commit f783b32b65ee50e3730ae2d039ca04c9fc5a201a)

16 years agor24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.
Günther Deschner [Mon, 6 Aug 2007 10:39:27 +0000 (10:39 +0000)]
r24250: Merge W_ERROR_HAVE_NO_MEMORY macro from Samba 4.

Guenther
(This used to be commit 054084a2359b5069b872b2e630377dc369c31018)

16 years agor24244: Complete the conversion of reply_trans[s]
Volker Lendecke [Sun, 5 Aug 2007 11:34:57 +0000 (11:34 +0000)]
r24244: Complete the conversion of reply_trans[s]

Remove reply_prep/post_legacy from send_trans_replies
(This used to be commit c08366f840ead5aba7199cf0b058587055b4d98e)

16 years agor24243: Remove reply_prep_legacy from api_reply
Volker Lendecke [Sun, 5 Aug 2007 11:19:24 +0000 (11:19 +0000)]
r24243: Remove reply_prep_legacy from api_reply
(This used to be commit b01664b43b0bd94bb59dec57480d2be954a7298a)

16 years agor24242: Remove reply_prep_legacy from api_rpc_trans_reply
Volker Lendecke [Sun, 5 Aug 2007 10:57:04 +0000 (10:57 +0000)]
r24242: Remove reply_prep_legacy from api_rpc_trans_reply
(This used to be commit 160f65946af9b3e1609b0efb211edc81514fb36f)

16 years agor24241: Remove reply_prep_legacy from api_WNPHS and api_SNPHS
Volker Lendecke [Sun, 5 Aug 2007 10:48:35 +0000 (10:48 +0000)]
r24241: Remove reply_prep_legacy from api_WNPHS and api_SNPHS
(This used to be commit 8702450e91943b1097ae3c8979d60b6962a69632)

16 years agor24240: Push down reply_prep_legacy one level inside api_fd_reply
Volker Lendecke [Sun, 5 Aug 2007 10:37:08 +0000 (10:37 +0000)]
r24240: Push down reply_prep_legacy one level inside api_fd_reply
(This used to be commit 0bb95639d6b49b18f2a7f1131f54239355097119)

16 years agor24239: Push reply_prep_legacy into api_fd_reply
Volker Lendecke [Sun, 5 Aug 2007 10:28:12 +0000 (10:28 +0000)]
r24239: Push reply_prep_legacy into api_fd_reply
(This used to be commit e2a96497928ab959e36639fef2d493640bb6e951)

16 years agor24238: Push down reply_prep_legacy one level
Volker Lendecke [Sun, 5 Aug 2007 10:17:58 +0000 (10:17 +0000)]
r24238: Push down reply_prep_legacy one level
(This used to be commit a6a2d97facf95c7997f3d12457f2811b3b7bde1b)

16 years agor24237: Add send_trans_reply_new
Volker Lendecke [Sun, 5 Aug 2007 10:04:11 +0000 (10:04 +0000)]
r24237: Add send_trans_reply_new
(This used to be commit f0598b3ca0ee04e31855c3e54f3198e6fd968737)

16 years agor24236: Push reply_prep_legacy() into named_pipe()
Volker Lendecke [Sun, 5 Aug 2007 10:01:58 +0000 (10:01 +0000)]
r24236: Push reply_prep_legacy() into named_pipe()
(This used to be commit b38f9347e81364d224e5ca00609099a74410e99c)

16 years agor24235: Make handle_trans reply to errors itself
Volker Lendecke [Sun, 5 Aug 2007 09:46:17 +0000 (09:46 +0000)]
r24235: Make handle_trans reply to errors itself
(This used to be commit 06d0c74b74754c55f4c8ef0899bda08476e7dd4b)

16 years agor24234: Reformatting -- SCNR
Volker Lendecke [Sun, 5 Aug 2007 09:19:21 +0000 (09:19 +0000)]
r24234: Reformatting -- SCNR
(This used to be commit 040d6d5db6d929f1612b1b0dc762b7f55c956740)

16 years agor24233: Push reply_prep_legacy into handle_trans
Volker Lendecke [Sun, 5 Aug 2007 09:18:14 +0000 (09:18 +0000)]
r24233: Push reply_prep_legacy into handle_trans
(This used to be commit dc27c3c668f86d008c27b8a749f5726287ba54a5)

16 years agor24232: Push down reply_prep_legacy inside reply_transs
Volker Lendecke [Sun, 5 Aug 2007 09:01:15 +0000 (09:01 +0000)]
r24232: Push down reply_prep_legacy inside reply_transs
(This used to be commit 511f8bc030a9a16c2e793ce5d06577608e101de4)

16 years agor24231: Push allocating InBuffer/OutBuffer into reply_transs
Volker Lendecke [Sun, 5 Aug 2007 08:47:09 +0000 (08:47 +0000)]
r24231: Push allocating InBuffer/OutBuffer into reply_transs
(This used to be commit 74ae19cca6dd15b65deffbf464cfd0e485da8611)

16 years agor24230: Push down reply_prep_legacy in reply_trans
Volker Lendecke [Sun, 5 Aug 2007 08:31:41 +0000 (08:31 +0000)]
r24230: Push down reply_prep_legacy in reply_trans

The last checkin was for reply_trans, not reply_transs
(This used to be commit 50a2bfd9e04d51aa5e3ae9d6620a98eeb158b6ea)

16 years agor24229: Push allocating InBuffer/OutBuffer into reply_transs
Volker Lendecke [Sun, 5 Aug 2007 08:04:11 +0000 (08:04 +0000)]
r24229: Push allocating InBuffer/OutBuffer into reply_transs
(This used to be commit 39a7809aa4c34bb26178589245c419df44796e22)

16 years agor24225: Convert reply_flush to the new API
Volker Lendecke [Sat, 4 Aug 2007 20:44:33 +0000 (20:44 +0000)]
r24225: Convert reply_flush to the new API
(This used to be commit f843c02f0794964eba02ab983f9c0701801f415c)

16 years agor24224: Check wct in reply_trans
Volker Lendecke [Sat, 4 Aug 2007 20:28:46 +0000 (20:28 +0000)]
r24224: Check wct in reply_trans
(This used to be commit fc8759e63ccec7f1cfb9f1d0ecd0f19a496e4153)

16 years agor24223: Convert reply_echo to the new API
Volker Lendecke [Sat, 4 Aug 2007 20:08:35 +0000 (20:08 +0000)]
r24223: Convert reply_echo to the new API
(This used to be commit 4863ff2899419e791ed0e340821072d004fb1d17)

16 years agor24167: Fix Coverity ID 365
Volker Lendecke [Sat, 4 Aug 2007 10:32:54 +0000 (10:32 +0000)]
r24167: Fix Coverity ID 365

We checked argc>=3 some lines above
(This used to be commit fa385e9f3c980756e428d89e73012cce895c3bf6)

16 years agor24166: Fix Coverity ID 391
Volker Lendecke [Sat, 4 Aug 2007 10:25:27 +0000 (10:25 +0000)]
r24166: Fix Coverity ID 391
(This used to be commit 461974d2cc18c729f152356a9c30cc776f288906)

16 years agor24165: Fix Coverity ID 369.
Volker Lendecke [Sat, 4 Aug 2007 10:18:33 +0000 (10:18 +0000)]
r24165: Fix Coverity ID 369.

This was not really a bug I think, but this change cleans up the code a
bit.
(This used to be commit 59b4914df3ecc97a1c629e8c7a066aed8e8d9226)

16 years agor24164: Fix for write cache corruption bug reported by Jean-Francois Panisset <paniss...
Jeremy Allison [Fri, 3 Aug 2007 16:51:43 +0000 (16:51 +0000)]
r24164: Fix for write cache corruption bug reported by Jean-Francois Panisset <panisset@A52.com>.
Awaiting confirmation from reporter.
Jeremy.
(This used to be commit 7bd65060bd965bd17a5d79639cf561b8b578cb36)

16 years agor24163: Remove the send_trans2_replies_new wrapper
Volker Lendecke [Fri, 3 Aug 2007 16:06:44 +0000 (16:06 +0000)]
r24163: Remove the send_trans2_replies_new wrapper

This changes send_trans2_replies to not depend on large buffers anymore
and finishes the trans2 conversion.
(This used to be commit b1d133e4ffa8c9b8219ba6e7b83e23ca4bdd1616)

16 years agor24162: send_trans2_replies is now static in trans2.c
Volker Lendecke [Fri, 3 Aug 2007 15:45:41 +0000 (15:45 +0000)]
r24162: send_trans2_replies is now static in trans2.c
(This used to be commit 47261fb6fecc036cb1605f46bbe24e9b3661ff8c)

16 years agor24161: handle_trans2 takes care of errors itself, no need to do it in reply_transs2
Volker Lendecke [Fri, 3 Aug 2007 15:27:28 +0000 (15:27 +0000)]
r24161: handle_trans2 takes care of errors itself, no need to do it in reply_transs2
(This used to be commit ca26b43e02f25d75e7439c6130f32dc322acd327)

16 years agor24160: process_trans2 in smbd/blocking.c used send_trans2_replies.
Volker Lendecke [Fri, 3 Aug 2007 14:33:38 +0000 (14:33 +0000)]
r24160: process_trans2 in smbd/blocking.c used send_trans2_replies.

Fake a struct smb_request here.

Volker
(This used to be commit f712d1c92bee024a165b5facabdac1e2c866d9b1)

16 years agor24159: Convert reply_transs2 to the new API
Volker Lendecke [Fri, 3 Aug 2007 14:02:07 +0000 (14:02 +0000)]
r24159: Convert reply_transs2 to the new API
(This used to be commit a55a4d71ffe9ff1395e02f8bb3ad88fe5132fe99)

16 years agor24158: SE_GROUP_RESOURCE in the other_sids list apparently means a
Gerald Carter [Fri, 3 Aug 2007 13:53:25 +0000 (13:53 +0000)]
r24158: SE_GROUP_RESOURCE in the other_sids list apparently means a
domain local group.

Fix a typo in the PAC debugging routine
(This used to be commit b0b66b2e7af133b199868b946fad70016e1cefbd)

16 years agor24156: Convert reply_trans2 to the new API
Volker Lendecke [Fri, 3 Aug 2007 13:34:02 +0000 (13:34 +0000)]
r24156: Convert reply_trans2 to the new API
(This used to be commit a9c2d75b42be8b0d89ed1e1a2ce2c6ab4284f5ea)

16 years agor24155: Check wct in reply_trans2
Volker Lendecke [Fri, 3 Aug 2007 13:13:57 +0000 (13:13 +0000)]
r24155: Check wct in reply_trans2
(This used to be commit e0a708c79b4db4aab84022d568b5e7bf519e4b5a)

16 years agor24154: handle_trans2 does not reference inbuf/outbuf anymore
Volker Lendecke [Fri, 3 Aug 2007 12:44:06 +0000 (12:44 +0000)]
r24154: handle_trans2 does not reference inbuf/outbuf anymore
(This used to be commit 8eb016a91e3ec8d1d9d5ae1ec6f92e1e0657d593)

16 years agor24153: Convert call_trans2setfsinfo to the new API.
Volker Lendecke [Fri, 3 Aug 2007 12:15:58 +0000 (12:15 +0000)]
r24153: Convert call_trans2setfsinfo to the new API.

This *might* break the transport encryption stuff. I need to check that.
(This used to be commit 82b34d7bdbe5c5038810c11540b6b7bc04290653)

16 years agor24152: Convert call_trans2ioctl to the new API
Volker Lendecke [Fri, 3 Aug 2007 11:57:39 +0000 (11:57 +0000)]
r24152: Convert call_trans2ioctl to the new API
(This used to be commit db4e6781c4d1a9755a3ec45556be8dd935f15bae)

16 years agor24151: Convert call_trans2getdfsreferral to the new API
Volker Lendecke [Fri, 3 Aug 2007 10:51:59 +0000 (10:51 +0000)]
r24151: Convert call_trans2getdfsreferral to the new API
(This used to be commit 642c58648b2468544e9488cbffe1a8b236949bcc)

16 years agor24150: Convert call_trans2qfsinfo to the new API
Volker Lendecke [Fri, 3 Aug 2007 10:32:41 +0000 (10:32 +0000)]
r24150: Convert call_trans2qfsinfo to the new API
(This used to be commit cdd86497b9830ba5fbc5b4511ed39ca44167faab)

16 years agor24149: Convert call_trans2setfilepathinfo to the new API
Volker Lendecke [Fri, 3 Aug 2007 10:07:18 +0000 (10:07 +0000)]
r24149: Convert call_trans2setfilepathinfo to the new API
(This used to be commit 50aa149cefc1da587f110eb0bf0344c737500f5b)

16 years agor24148: Remove some inbuf refs from subcommands of call_trans2setfilepathinfo
Volker Lendecke [Fri, 3 Aug 2007 09:45:42 +0000 (09:45 +0000)]
r24148: Remove some inbuf refs from subcommands of call_trans2setfilepathinfo
(This used to be commit 09ed6537b39f72e61043a93fadea33562b07c6c6)

16 years agor24147: Remove some inbuf refs from call_trans2setfilepathinfo
Volker Lendecke [Fri, 3 Aug 2007 09:09:00 +0000 (09:09 +0000)]
r24147: Remove some inbuf refs from call_trans2setfilepathinfo
(This used to be commit a13c42be7548fc0de3e1f6f1eaacbad3046af0d0)

16 years agor24145: Fix a comment
Volker Lendecke [Fri, 3 Aug 2007 07:00:19 +0000 (07:00 +0000)]
r24145: Fix a comment
(This used to be commit 34a00d8aa9af167c65baf7fc24de3c8e192f5ec0)

16 years agor24144: Fix the build
Volker Lendecke [Thu, 2 Aug 2007 20:56:40 +0000 (20:56 +0000)]
r24144: Fix the build

In a function returning void the "return;" needs to stand alone on some
compilers
(This used to be commit 28affcca8e22b9a147876a60fec28551256bcaa8)

16 years agor24143: Convert call_trans2qfilepathinfo to the new API
Volker Lendecke [Thu, 2 Aug 2007 20:19:27 +0000 (20:19 +0000)]
r24143: Convert call_trans2qfilepathinfo to the new API
(This used to be commit 0b84e29120b87bf6fc86df10102f1c4d4f98cdb6)

16 years agor24142: Remove some direct inbuf references from call_trans2qfilepathinfo
Volker Lendecke [Thu, 2 Aug 2007 20:06:15 +0000 (20:06 +0000)]
r24142: Remove some direct inbuf references from call_trans2qfilepathinfo
(This used to be commit c9c0133d5512e68fcaf22b2abd3343ae944ddb9d)

16 years agor24141: Add check_fsp as a replacement for CHECK_FSP
Volker Lendecke [Thu, 2 Aug 2007 19:50:56 +0000 (19:50 +0000)]
r24141: Add check_fsp as a replacement for CHECK_FSP
(This used to be commit a3d77a576f863c4d9f95a1a898f70ae5b5bbc471)

16 years agor24140: Convert call_trans2findnotifyfirst/next to the new API
Volker Lendecke [Thu, 2 Aug 2007 19:48:44 +0000 (19:48 +0000)]
r24140: Convert call_trans2findnotifyfirst/next to the new API
(This used to be commit 46d9c51631d099af0f8696d3942eb51b0cb09865)

16 years agor24139: Convert call_trans2mkdir to the new API
Volker Lendecke [Thu, 2 Aug 2007 19:35:27 +0000 (19:35 +0000)]
r24139: Convert call_trans2mkdir to the new API
(This used to be commit d0b7f409e1ec88bcd695474aa77e75cb50dce013)

16 years agor24138: Convert call_trans2findnext to the new API
Volker Lendecke [Thu, 2 Aug 2007 19:22:14 +0000 (19:22 +0000)]
r24138: Convert call_trans2findnext to the new API
(This used to be commit af1855e4cebb6df3415ca5389b10aaa5a956adc2)

16 years agor24137: Convert call_trans2findfirst to the new API
Volker Lendecke [Thu, 2 Aug 2007 19:08:21 +0000 (19:08 +0000)]
r24137: Convert call_trans2findfirst to the new API
(This used to be commit 238edebab71ed1596af82f4c8611432f9156bd18)

16 years agor24136: get_lanman2_dir_entry() does not need access to inbuf/outbuf
Volker Lendecke [Thu, 2 Aug 2007 18:50:17 +0000 (18:50 +0000)]
r24136: get_lanman2_dir_entry() does not need access to inbuf/outbuf

It did not use inbuf anyway. Outbuf was used for alignment and to the
flags2. The alignment works ok if we align relative to base_data because this
and outbuf are both malloc'ed, and we put send_trans2_replies aligns out_data
properly relative to the start of the outbuf.

I don't know if the explicit align_string() calls in get_lanman2_dir_entry are
really necessary. I think that srvstr_push also does the same.

Please also note that this changes dst_len in srvstr_push from -1 to the real
length remaining.

Volker
(This used to be commit 9b1614f8cb415c15032e6a34f2da5df026f92e6e)

16 years agor24135: Convert call_trans2open to the new API
Volker Lendecke [Thu, 2 Aug 2007 18:28:41 +0000 (18:28 +0000)]
r24135: Convert call_trans2open to the new API

This itself won't help much, because send_trans2_replies_new still allocates
the big buffers, but stay tuned :-)

Also add/update my copyright on stuff I recently touched.

Volker
(This used to be commit 248f15ff143474db2493cef89ba446892342a361)

16 years agor24134: talloc smb_request for handle_trans2
Volker Lendecke [Thu, 2 Aug 2007 18:13:57 +0000 (18:13 +0000)]
r24134: talloc smb_request for handle_trans2

When starting to convert the individual trans2 subcalls, I need the new
API conventions to be present there. This means that those calls fill in
req->outbuf when there's something to ship
(This used to be commit d9eef977dc80d6ee71898efc1ff736afb75eba0c)

16 years agor24133: Explicitly pass flags2 down to push_string_fn
Volker Lendecke [Thu, 2 Aug 2007 18:06:45 +0000 (18:06 +0000)]
r24133: Explicitly pass flags2 down to push_string_fn

This needs a bit closer review, it also touches the client libs
(This used to be commit 824eb26738d64af1798d319d339582cf047521f0)

16 years agor24131: - make it more clear what the different min and max fields mean
Stefan Metzmacher [Thu, 2 Aug 2007 17:41:47 +0000 (17:41 +0000)]
r24131: - make it more clear what the different min and max fields mean
- with the "GSSAPI" sasl mech the plain, sign or seal negotiation
  is independed from the req_flags and ret_flags
- verify the server supports the wrapping type we want
- better handling on negotiated buffer sizes

metze
(This used to be commit d0ec7323870ca16b28d458ff5f7dacce278b7d54)

16 years agor24130: Explicitly pass flags2 to srvstr_push
Volker Lendecke [Thu, 2 Aug 2007 17:37:38 +0000 (17:37 +0000)]
r24130: Explicitly pass flags2 to srvstr_push

This is in preparation of the trans2 conversion: srvstr_push should not
look at inbuf directly.
(This used to be commit 5fd7e6a3821bea26d352e3edc23b7a216b1200e5)

16 years agor24128: fix double free in error path
Stefan Metzmacher [Thu, 2 Aug 2007 15:11:37 +0000 (15:11 +0000)]
r24128: fix double free in error path

metze
(This used to be commit 29e2d8e044c9213643a2f5f29891ce853a839347)

16 years agor24125: use TALLOC_FREE()
Stefan Metzmacher [Thu, 2 Aug 2007 09:22:47 +0000 (09:22 +0000)]
r24125: use TALLOC_FREE()

metze
(This used to be commit 4c21ebae95f7c07bdde55a9d686af044f2effba4)

16 years agor24123: add file_id_create() to some vfs modules
Stefan Metzmacher [Thu, 2 Aug 2007 09:19:04 +0000 (09:19 +0000)]
r24123: add file_id_create() to some vfs modules

metze
(This used to be commit 0bc5a9cd0136f8512e963a30b6e7b009667fb0bf)

16 years agor24120: add a file_id_create() hook into the VFS layer
Stefan Metzmacher [Thu, 2 Aug 2007 08:53:24 +0000 (08:53 +0000)]
r24120: add a file_id_create() hook into the VFS layer

it's needed for some cluster filesystems to
overload this function.

metze
(This used to be commit cdaa24e8047399002e4b287a31a8340a665e580f)

16 years agor24119: Convert reply_exit to the new API
Volker Lendecke [Thu, 2 Aug 2007 05:50:40 +0000 (05:50 +0000)]
r24119: Convert reply_exit to the new API
(This used to be commit d4d550aa2ba20d704d2ab1265732b03405e8819c)

16 years agor24117: use locking_key() instead of forming the TDB_DATA key
Stefan Metzmacher [Wed, 1 Aug 2007 13:39:25 +0000 (13:39 +0000)]
r24117: use locking_key() instead of forming the TDB_DATA key
by hand

metze
(This used to be commit a7449e4ab390b3c1d9d5a0bbc466f71de17918e0)

16 years agor24115: try to get the file name and share patch for printing
Stefan Metzmacher [Wed, 1 Aug 2007 11:18:56 +0000 (11:18 +0000)]
r24115: try to get the file name and share patch for printing
brlocks from the share_mode db, as the same fileid
is used.

metze
(This used to be commit 8cccf470cbce87618753bc205a0c9cac1edf4d9c)

16 years agor24113: some little fixes to get the correct error message
Stefan Metzmacher [Wed, 1 Aug 2007 10:03:13 +0000 (10:03 +0000)]
r24113: some little fixes to get the correct error message
when using "clustering = yes" and ctdbd isn't running

metze
(This used to be commit c5f020ba1fdefe0422dd466b9c68ff67c74ceddd)

16 years agor24107: Fix bug 4849. Thanks to Matthijs Kooijman <matthijs@stdin.nl>
Volker Lendecke [Tue, 31 Jul 2007 19:15:27 +0000 (19:15 +0000)]
r24107: Fix bug 4849. Thanks to Matthijs Kooijman <matthijs@stdin.nl>
(This used to be commit 6e6eea64a5f770a585487734b1d0c28746bf5550)

16 years agor24106: Pass fnum instead of buf/offset into get_rpc_pipe_p
Volker Lendecke [Tue, 31 Jul 2007 13:14:07 +0000 (13:14 +0000)]
r24106: Pass fnum instead of buf/offset into get_rpc_pipe_p
(This used to be commit eb353412c60fc21a31530d9678505470ffbf11ce)

16 years agor24104: fix the build, sorry...
Stefan Metzmacher [Tue, 31 Jul 2007 12:30:37 +0000 (12:30 +0000)]
r24104: fix the build, sorry...

metze
(This used to be commit a5e1f9fd293fab26d664a72ee652eb8ca72128b7)

16 years agor24103: add some useful debug messages, as not all LDAP
Stefan Metzmacher [Tue, 31 Jul 2007 12:27:25 +0000 (12:27 +0000)]
r24103: add some useful debug messages, as not all LDAP
libraries support wrapping hooks...

metze
(This used to be commit 581a1d3a20ffed42ccc7f35f163fd343ed12ccd3)

16 years agor24102: Pass the fid instead of inbuf and an offset to file_fsp.
Volker Lendecke [Tue, 31 Jul 2007 12:05:40 +0000 (12:05 +0000)]
r24102: Pass the fid instead of inbuf and an offset to file_fsp.

This removes the buf==NULL condition in file_fsp(), but wherever it is called
we do have a buffer anyway.

Volker
(This used to be commit d70a1f82fed64fa332f16407bea7c6671f48c59a)

16 years agor24101: Move prohibited_ea_names[] into samba_private_attr_name()
Volker Lendecke [Tue, 31 Jul 2007 11:26:24 +0000 (11:26 +0000)]
r24101: Move prohibited_ea_names[] into samba_private_attr_name()

Minor cleanup
(This used to be commit 04879717229d5b74b94b79a962cca5e9624648bc)

16 years agor24100: Convert reply_ntcancel to the new API
Volker Lendecke [Tue, 31 Jul 2007 10:04:54 +0000 (10:04 +0000)]
r24100: Convert reply_ntcancel to the new API
(This used to be commit 6e5f39379f60e30cd0445a049df619ec8f65fc01)

16 years agor24098: - make use of the ads_service_principal abstraction
Stefan Metzmacher [Tue, 31 Jul 2007 09:49:14 +0000 (09:49 +0000)]
r24098: - make use of the ads_service_principal abstraction
  also for the "GSSAPI" sasl mech.
- also use the ads_kinit_password() fallback logic
  from the "GSS-SPNEGO" sasl mech.

metze
(This used to be commit cbaf44de1e1f8007dc4ca249791ea30d2902c7c4)

16 years agor24097: Convert reply_ntcreate_and_X_quota to the new API
Volker Lendecke [Tue, 31 Jul 2007 09:41:21 +0000 (09:41 +0000)]
r24097: Convert reply_ntcreate_and_X_quota to the new API
(This used to be commit 08acadae56e0b603ccac7dc21f89d5071a33b255)