Stefan Metzmacher
16bd41b7e7
s3:printing/spoolssd: avoid using server_messaging_context()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Dec 16 16:29:41 CET 2011 on sn-devel-104
2011-12-16 16:29:41 +01:00
Stefan Metzmacher
cbb67e9e2e
s3:smbd: remove unused sconn_server_id()
...
metze
2011-12-16 13:19:33 +01:00
Stefan Metzmacher
704cf10645
s3:smbd: avoid using sconn_server_id()
...
metze
2011-12-16 13:19:32 +01:00
Stefan Metzmacher
fe7c5198a2
s3:locking: avoid using sconn_server_id()
...
metze
2011-12-16 13:19:32 +01:00
Stefan Metzmacher
f166f91988
s3:lib/conn_tdb: avoid using sconn_server_id()
...
metze
2011-12-16 13:19:32 +01:00
Volker Lendecke
7000bb6933
s3: Add some const to find_oplock_types
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Dec 16 09:10:07 CET 2011 on sn-devel-104
2011-12-16 09:10:06 +01:00
Volker Lendecke
2349c027c1
s3: Make open_file_ntcreate a bit easier to read
...
Move the declaration of "id" closer to its use
2011-12-16 07:34:48 +01:00
Volker Lendecke
ce30a7ae7b
s3: Make open_file_ntcreate a bit easier to read
...
Move the calculation of "new_file_created" closer to its use
2011-12-16 07:34:48 +01:00
Volker Lendecke
98f7ba52e3
s3: Make open_file_ntcreate a bit easier to read
...
Remove a negation where it's not necessary
2011-12-16 07:34:48 +01:00
Volker Lendecke
432ea5f5c6
s3: Slightly simplify delay_for_exclusive_oplocks
2011-12-16 07:34:48 +01:00
Volker Lendecke
b3d8ecaf52
s3: Slightly simplify delay_for_batch_oplocks
2011-12-16 07:34:47 +01:00
Jeremy Allison
c5cbe481a7
Third part of fix for bug #8663 - deleting a symlink fails if the symlink target is outside of the share.
...
smbd_check_access_rights() - we can always delete a symlink.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Dec 16 03:32:15 CET 2011 on sn-devel-104
2011-12-16 03:32:15 +01:00
Jeremy Allison
f448c0e6db
Second part of fix for bug #8663 - deleting a symlink fails if the symlink target is outside of the share.
...
Ensure we use UCF_UNIX_NAME_LOOKUP flags on filename_convert()
when doing a UNIX infolevel in trans2setfilepathinfo().
2011-12-15 16:33:37 -08:00
Jeremy Allison
8eca223123
First part of fix for bug #8663 - deleting a symlink fails if the symlink target is outside of the share.
...
Remove two unneeded check_name() calls. They have already been done
in order to get here.
2011-12-15 16:31:51 -08:00
Volker Lendecke
1355f0ac8c
s3: Fix a typo
...
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Thu Dec 15 23:35:28 CET 2011 on sn-devel-104
2011-12-15 23:35:28 +01:00
Christian Ambach
851b9e9183
s3:vfs fix up vfs_gpfs after function pointer renames
...
In 422494a8e630e2ca89386344eaa5346388698a32, vfs_gpfs.c was forgotten
Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Thu Dec 15 21:08:02 CET 2011 on sn-devel-104
2011-12-15 21:08:02 +01:00
Andreas Schneider
d0330c7dd6
s3-libsmb: Don't duplicate kerberos service tickets.
...
This fixes bug #8628 .
Each time we do a client connection. Each time we call to function to
get the service ticket from the cache we duplicate it. So with each
connection we end up with one or three duplicated tickets.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Dec 15 19:30:42 CET 2011 on sn-devel-104
2011-12-15 19:30:42 +01:00
Volker Lendecke
8eeb3ff753
s3-dbwrap: All relevant backends provide parse_record(). Remove the fallback.
...
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Dec 15 17:41:53 CET 2011 on sn-devel-104
2011-12-15 17:41:53 +01:00
Volker Lendecke
f6d8f7440c
s3-dbwrap: Remove the "fetch" db_context callback
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:47 +01:00
Volker Lendecke
b5d056ca23
s3-dbwrap: Rewrite dbwrap_fetch in terms of dbwrap_parse_record
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:46 +01:00
Volker Lendecke
77dca70350
s3-dbwrap: Rewrite dbwrap_fallback_parse_record based on dbwrap_fetch_locked
...
This is in preparation to remove the db_context->fetch function pointer
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:46 +01:00
Volker Lendecke
daa365493e
s3-dbwrap: For nostalgic reasons, make dbwrap_file.c compile at least
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:46 +01:00
Volker Lendecke
29f62bbed7
s3-dbwrap: Fix some blank line endings
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:46 +01:00
Volker Lendecke
098048a89c
s3-dbwrap: Implement db_ctdb_parse_record in terms of db_ctdb_fetch
...
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:45 +01:00
Volker Lendecke
26fc72921f
s3-dbwrap: Make dbwrap_parse_record return NTSTATUS
...
Also, the parser now returns void. The parser is called if and only if
dbwrap_parse_record returns NT_STATUS_OK.
Signed-off-by: Michael Adam <obnox@samba.org>
2011-12-15 16:00:45 +01:00
Stefan Metzmacher
19078b9b05
s3:smbd/globals: remove unused msg_ctx_to_sconn()
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Dec 15 14:24:59 CET 2011 on sn-devel-104
2011-12-15 14:24:59 +01:00
Stefan Metzmacher
03455519e7
s3:smbd: pass smbd_server_connection and a snumused function pointer to reload_services()
...
metze
2011-12-15 11:11:24 +01:00
Stefan Metzmacher
5061dd26d3
s3:printing/spoolssd: pass event and messaging context to check_updater_child()
...
metze
2011-12-15 11:08:52 +01:00
Stefan Metzmacher
06c1c338e3
s3:rpc_server/spoolss: remove reload_services check from delete_printer_hook()
...
As the spoolss code can run embedded or external relative to the
smbd file server process, it's very tricky to verify if a share
is still in use.
Checking the result of the "deleteprinter command" command should
be enough to check for success. We should not return WERR_ACCESS_DENIED
if the share is still in use, by the current client, as the primary
printer definition is already deleted.
metze
2011-12-15 11:03:29 +01:00
Stefan Metzmacher
e412b8bfcc
s3:smbd: split smb_conf_updated into parent and child versions
...
metze
2011-12-15 11:03:00 +01:00
Stefan Metzmacher
715933a3d3
s3:smbd: split ID_CACHE_* message handling into parent and child parts
...
metze
2011-12-15 08:16:31 +01:00
Günther Deschner
fdcbb7e03b
s3-includes: remove PRIMARY_* SID_INDEX defines defined elsewhere already.
...
They really do not belong to smb.h.
Guenther
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Wed Dec 14 21:15:39 CET 2011 on sn-devel-104
2011-12-14 21:15:39 +01:00
Volker Lendecke
1bea57a6c3
s3: Fix raw.mux after UNUSED_SHARE_MODE_ENTRY was removed
...
See the large comment in notify_deferred_opens for an explanation
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Dec 14 19:08:30 CET 2011 on sn-devel-104
2011-12-14 19:08:30 +01:00
Volker Lendecke
c889c8d705
s3: Slightly simplify the logic in defer_open
...
Doing 3 &&ed conditions in a single if-statement is easier to understand to me
than continuing out separately.
2011-12-14 17:34:21 +01:00
Volker Lendecke
f7e84f2809
s3: Remove UNUSED_SHARE_MODE_ENTRY
2011-12-14 17:34:21 +01:00
Volker Lendecke
37e7981eea
s3: Remove a call to procid_self()
2011-12-14 17:34:21 +01:00
Volker Lendecke
461766e497
s3: Remove nmbd_messaging_context()
2011-12-14 17:34:21 +01:00
Volker Lendecke
c21f6a1c68
s3: Fix some pointless statics
2011-12-14 17:34:21 +01:00
Volker Lendecke
78e629c598
s3: Remove a call to procid_self()
...
Pass messaging_context through the SIGHUP handler
2011-12-14 17:34:21 +01:00
Volker Lendecke
1f0f8aaab5
s3: Remove a call to procid_self()
...
Pass messaging_context through the SIGTERM handler
2011-12-14 17:34:21 +01:00
Volker Lendecke
505761b5a3
s3: Pass messaging_context to nmbd/process()
2011-12-14 17:34:21 +01:00
Volker Lendecke
096ede3623
s3: Make nmbd_messaging_context static
2011-12-14 17:34:20 +01:00
Volker Lendecke
a2d1b3b144
s3: Centralize nmbd_messaging_context in nmbd.c
2011-12-14 17:34:20 +01:00
Volker Lendecke
5c3194cc41
s3: Fix some nonempty blank lines
2011-12-14 17:34:20 +01:00
Stefan Metzmacher
ffa996e479
s3:smb2_lock: use talloc_get_type_abort() as private_data can't be NULL
...
metze
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Dec 14 13:34:25 CET 2011 on sn-devel-104
2011-12-14 13:34:25 +01:00
Stefan Metzmacher
324e66fd45
s3:smbd/oplock: make process_oplock_async_level2_break_message() static
...
metze
2011-12-14 12:00:07 +01:00
Stefan Metzmacher
dabc2cb9cb
s3:smbd/oplock: use talloc_get_type_abort() as private_data can't be NULL
...
metze
2011-12-14 12:00:07 +01:00
Stefan Metzmacher
940f21e5c6
s3:smbd/open: use talloc_get_type_abort() as private_data can't be NULL
...
metze
2011-12-14 12:00:07 +01:00
Stefan Metzmacher
e3e56e209f
s3:smbd/conn_msg: use talloc_get_type_abort() as private_data can't be NULL
...
metze
2011-12-14 12:00:07 +01:00
Stefan Metzmacher
95384d11a3
s3:smbd/close: use talloc_get_type_abort() as private_data can't be NULL
...
metze
2011-12-14 12:00:07 +01:00