1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

210 Commits

Author SHA1 Message Date
Günther Deschner
08213f706e Use pidl for _srvsvc_NetSessEnum().
Guenther
(This used to be commit 5d14938b14)
2008-03-21 04:16:21 +01:00
Günther Deschner
a6bbefa1cb Use pidl for _srvsvc_NetConnEnum().
Guenther
(This used to be commit b8714e03e7)
2008-03-21 04:16:21 +01:00
Volker Lendecke
5346641c1c Fix an uninitialized variable warning
(This used to be commit 4cc09ec406)
2008-03-20 16:54:05 +01:00
Günther Deschner
63a6acdfa8 Use pidl for _srvsvc_NetFileEnum.
Guenther
(This used to be commit 6c6700ed71)
2008-03-19 02:18:46 +01:00
Michael Adam
16f4e059f7 init_srv_share_info_ctr: fix counting of services.
The number of services was recorded too early leading to
registry shares not showing up in browse lists.

Guenther - please check.

Michael
(This used to be commit 737e470e02)
2008-03-12 02:12:34 +01:00
Michael Adam
b371db93bb init_srv_share_info_ctr: Add debug messages.
Michael
(This used to be commit 8b2cc36ffc)
2008-03-12 02:12:34 +01:00
Günther Deschner
2a40d67041 Trying to fix resume_handling for srvsvc_NetShareEnumAll.
Guenther
(This used to be commit 874a0ffd7d)
2008-03-11 11:33:07 +01:00
Günther Deschner
b960bc265b Use pidl for _srvsvc_NetDiskEnum.
Guenther
(This used to be commit 933d546f86)
2008-03-11 10:48:52 +01:00
Günther Deschner
ca354276ca Use pidl for _srvsvc_NetSessDel().
Guenther
(This used to be commit 8a10bc13ae)
2008-03-10 03:43:39 +01:00
Günther Deschner
fa58ebd8f7 Use pidl for _srvsvc_NetGetFileSecurity.
Guenther
(This used to be commit 8b016efeb0)
2008-03-08 23:07:00 +01:00
Günther Deschner
3102609c4b Use pidl for _srvsvc_NetSetFileSecurity.
Guenther
(This used to be commit 64a121c147)
2008-03-08 23:07:00 +01:00
Günther Deschner
45c91e7d75 Use pidl for _srvsvc_NetShareAdd.
Guenther
(This used to be commit fd3e772818)
2008-03-08 00:22:44 +01:00
Günther Deschner
9beec265bc Use pidl for _srvsvc_NetNameValidate.
Guenther
(This used to be commit 2e1df30678)
2008-03-07 23:51:34 +01:00
Günther Deschner
ad3a1b8475 Use pidl for _srvsvc_NetShareDel and _srvsvc_NetShareDelSticky.
Guenther
(This used to be commit 73b6587493)
2008-03-07 23:26:00 +01:00
Günther Deschner
7b75317989 Use pidl for _srvsvc_NetShareGetInfo, _srvsvc_NetShareEnum and srvsvc_NetShareEnumAll.
Fixing resume handling while we are there.

Guenther
(This used to be commit 128637bdd7)
2008-03-07 20:59:30 +01:00
Günther Deschner
78b20443c5 Use pidl for _srvsvc_NetRemoteTOD().
Guenther
(This used to be commit 2b4e0f0593)
2008-03-05 10:34:45 +01:00
Günther Deschner
c6c67005a8 Use pidl for _srvsvc_NetShareSetInfo().
Guenther
(This used to be commit 9bfa77edc6)
2008-03-05 10:00:31 +01:00
Günther Deschner
eb44792a22 Use pidl for _srvsvc_NetSrvSetInfo().
Guenther
(This used to be commit 75b0bbf790)
2008-03-05 09:50:02 +01:00
Günther Deschner
2c3dc9baa5 Use pidl for _srvsvc_NetSrvGetInfo().
Guenther
(This used to be commit 34caa41fa6)
2008-03-05 09:49:15 +01:00
Günther Deschner
d89877070e Whitespace cleanup in srvsvc server.
Guenther
(This used to be commit 3c0a3f8de7)
2008-03-05 09:47:53 +01:00
Andreas Schneider
1751b533f0 Rename the 'hidden' variable to 'administrative share'.
(This used to be commit eff3d3bad5)
2008-02-29 13:08:04 +01:00
Günther Deschner
b2ed9341ee Fix segfault in _srv_net_file_enum.
Guenther
(This used to be commit 6523a051de)
2008-02-28 10:15:31 +01:00
Andreas Schneider
d85c517b45 Add variable to define if a share should be hidden.
If you create a share on a Windows machine called foo$ then this share is
of the type STYPE_DISKTREE. So it is possible to administrate this kind of
share. Tested on Windows NT and 2003.

In samba we assume that if a share with a $ at the end must be of the type
STYPE_DISKTREE_HIDDEN. This is wrong, so we need a variable in the config
to define if the share should be hidden or not.
(This used to be commit a3da677bf0)
2008-02-26 21:34:05 +01:00
Volker Lendecke
5ddb2abf76 Some more talloc_tos()
(This used to be commit 444e35e7df)
2008-01-10 13:19:58 +01:00
Volker Lendecke
7cbdb48475 Remove tiny code duplication
ndr_size_security_descriptor does the same as sec_desc_size
(This used to be commit bc3bd7a8e7)
2007-12-29 23:13:26 +01:00
Volker Lendecke
e9b8eb1446 Remove a silly static
(This used to be commit ef75dcc9ff)
2007-12-27 22:33:02 +01:00
Volker Lendecke
addf598cde Some C++ warnings
(This used to be commit 5ab82d4f57)
2007-12-21 09:58:20 +01:00
Michael Adam
233eb0e560 Change the prototype of the vfs function get_nt_acl().
Up to now, get_nt_acl() took a files_struct pointer (fsp) and
a file name. All the underlying functions should need and now
do need (after the previous preparatory work), is a connection_struct
and a file name. The connection_struct is already there in the
vfs_handle passed to the vfs functions. So the files_struct
argument can be eliminated.

This eliminates the need of calling open_file_stat in a couple
of places to produce the fsp needed.

Michael
(This used to be commit b5f600fab5)
2007-12-19 23:08:01 +01:00
Jeremy Allison
7faee02d0d Remove the char[1024] strings from dynconfig. Replace
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2)
2007-12-10 11:30:37 -08:00
Jeremy Allison
6b6655edd9 Remove pstrings from everything except srv_spoolss_nt.c.
Jeremy.
(This used to be commit 0002a9e96b)
2007-11-27 14:35:30 -08:00
Jeremy Allison
3a452a15b7 Remove pstring from everything in rpc_server except
srv_spoolss_nt.c and srv_srvsvc_nt.c.
They're next :-).
Jeremy.
(This used to be commit 55b4f9d003)
2007-11-27 11:22:58 -08:00
Jeremy Allison
68be9a8200 More pstring removal. This one was tricky. I had to add
one horror (pstring_clean_name()) which will have to
remain until I've removed all pstrings from the client code.
Jeremy.
(This used to be commit 1ea3ac8014)
2007-11-15 14:19:52 -08:00
Volker Lendecke
15953b82eb Make [f]get_nt_acl return NTSTATUS
(This used to be commit dcbe1bf942)
2007-11-13 15:47:01 +01:00
Michael Adam
23f6c371c9 Streamline logic, reducing the amount of indentation.
Michael
(This used to be commit aae3d04e30)
2007-10-19 15:54:23 -05:00
Jeremy Allison
30191d1a57 RIP BOOL. Convert BOOL -> bool. I found a few interesting
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3c)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a [GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
(This used to be commit 5c6c8e1fe9)
2007-10-10 15:34:30 -05:00
Volker Lendecke
b5535567c1 r25564: Pass sharename to delete_share_security()
(This used to be commit d100bfffe2)
2007-10-10 12:31:13 -05:00
Volker Lendecke
0ebab65706 r25534: Apply some const
Why? It moves these structs from the data into the text segment, so they
will never been copy-on-write copied. Not much, but as in German you say
"Kleinvieh macht auch Mist...."
(This used to be commit 0141e64ad4)
2007-10-10 12:31:12 -05:00
Volker Lendecke
5d552214e6 r25484: Fix srvsrc_NetFileEnum listing only for one user
(This used to be commit 9e1f513916)
2007-10-10 12:31:08 -05:00
Volker Lendecke
105d2a67ea r25482: Slightly simplify logic
Instead of one big if-branch for if (process_exists(..)) return if
(!process_exists(..))
(This used to be commit 3acc00132c)
2007-10-10 12:31:07 -05:00
Volker Lendecke
3665d6d9d5 r25480: Fix a segfault
(This used to be commit 7e72a3046d)
2007-10-10 12:31:07 -05:00
Jeremy Allison
eacd314057 r25138: More pstring elimination. Add a TALLOC_CTX parameter
to unix_convert().
Jeremy.
(This used to be commit 39c211a702)
2007-10-10 12:30:44 -05:00
Jeremy Allison
132ee3990a r25009: Large patch discussed with Volker. Move unix_convert to a talloc-based
interface. More development will come on top of this. Remove the
"mangled map" parameter.
Jeremy.
(This used to be commit dee8beba7a)
2007-10-10 12:30:32 -05:00
Volker Lendecke
929e1d9920 r24809: Consolidate the use of temporary talloc contexts.
This adds the two functions talloc_stackframe() and talloc_tos().

 * When a new talloc stackframe is allocated with talloc_stackframe(), then
 * the TALLOC_CTX returned with talloc_tos() is reset to that new
 * frame. Whenever that stack frame is TALLOC_FREE()'ed, then the reverse
 * happens: The previous talloc_tos() is restored.
 *
 * This API is designed to be robust in the sense that if someone forgets to
 * TALLOC_FREE() a stackframe, then the next outer one correctly cleans up and
 * resets the talloc_tos().

The original motivation for this patch was to get rid of the
sid_string_static & friends buffers. Explicitly passing talloc context
everywhere clutters code too much for my taste, so an implicit
talloc_tos() is introduced here. Many of these static buffers are
replaced by a single static pointer.

The intended use would thus be that low-level functions can rather
freely push stuff to talloc_tos, the upper layers clean up by freeing
the stackframe. The more of these stackframes are used and correctly
freed the more exact the memory cleanup happens.

This patch removes the main_loop_talloc_ctx, tmp_talloc_ctx and
lp_talloc_ctx (did I forget any?)

So, never do a

tmp_ctx = talloc_init("foo");

anymore, instead, use

tmp_ctx = talloc_stackframe()

:-)

Volker
(This used to be commit 6585ea2cb7)
2007-10-10 12:30:24 -05:00
Andrew Tridgell
153cfb9c83 r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
(This used to be commit 87c91e4362)
2007-10-10 12:28:27 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b)
2007-10-10 12:28:20 -05:00
Volker Lendecke
0bc56a2e5f r23724: Reduce access to the global inbuf a tiny bit. Add a struct smb_request
that contains some of the fields from the SMB header, removing the need
to access inbuf directly. This right now is used only in the open file
code & friends, and creating that header is only done when needed. This
needs more work, but it is a start.

Jeremy, I'm only checking this into 3_0, please review before I merge it
to _26.

Volker
(This used to be commit ca988f4e79)
2007-10-10 12:23:48 -05:00
Jeremy Allison
a0ac7a7f4c r23620: Convert set_nt_acl to return NTSTATUS. Also fix the chown
return to correctly return NT_STATUS_INVALID_OWNER if it
should be disallowed. Matches better what W2K3R3 does.

NFSv4 ACL module owners, please examine these changes.

Jeremy.
(This used to be commit fc6899a550)
2007-10-10 12:23:37 -05:00
Volker Lendecke
e8156439f2 r23183: Check in a change made by Tridge:
This replaces the internal explicit dev/ino file id representation by a
"struct file_id". This is necessary as cluster file systems and NFS
don't necessarily assign the same device number to the shared file
system. With this structure in place we can now easily add different
schemes to map a file to a unique 64-bit device node.

Jeremy, you might note that I did not change the external interface of
smb_share_modes.c.

Volker
(This used to be commit 9b10dbbd5d)
2007-10-10 12:22:52 -05:00
Volker Lendecke
054bf2fc8b r23171: Convert connections.tdb to dbwrap
(This used to be commit 80a1f43825)
2007-10-10 12:22:52 -05:00