samba.git
14 years agoerror-codes: add some more group specific windows error codes.
Günther Deschner [Tue, 5 May 2009 17:38:58 +0000 (19:38 +0200)]
error-codes: add some more group specific windows error codes.

Guenther

14 years agos3:loadparm: use the returnvalue of service_ok() in process_smbconf_service().
Michael Adam [Tue, 5 May 2009 15:46:20 +0000 (17:46 +0200)]
s3:loadparm: use the returnvalue of service_ok() in process_smbconf_service().

Michael

14 years agoAdd release scripts for talloc and tdb
Simo Sorce [Tue, 5 May 2009 13:50:19 +0000 (09:50 -0400)]
Add release scripts for talloc and tdb

14 years agos3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.
Günther Deschner [Tue, 5 May 2009 10:54:21 +0000 (12:54 +0200)]
s3-pam_winbind: Fix Bug 6253: Use correct value for password expiry calculation.

Patch from Blindauer Emmanuel <samba@mooby.net>.

Guenther

14 years agoTurn on POSIX test (small test) on buildfarm.
Jeremy Allison [Mon, 4 May 2009 22:55:23 +0000 (15:55 -0700)]
Turn on POSIX test (small test) on buildfarm.
Jeremy.

14 years agoFix the async calls for the posix_unlink and posix_rmdir.
Jeremy Allison [Mon, 4 May 2009 22:50:35 +0000 (15:50 -0700)]
Fix the async calls for the posix_unlink and posix_rmdir.
Jeremy.

14 years agos3:onefs.so fix issue with missing entries when enumerating directories
Steven Danneman [Mon, 4 May 2009 22:02:17 +0000 (15:02 -0700)]
s3:onefs.so fix issue with missing entries when enumerating directories

This bug prompted several, fairly large changes to the of OneFS's
readdirplus() within Samba.

One fundamental problem is that we kept our cache cursor pointed at the
next entry to be returned from onefs_readdir(), while the resume cookie
needed to refill the cache such that our cursor would be on this entry,
was located in the previous cache entry.  This meant that to correctly handle
seekdir() cases which could be found within the existing cache, and cases
where a cache reload was needed, required that the cache always hold
at least two entries: the entry we wished to return, and the previous entry
which held the resume cookie.  Since the readdirplus() syscall gives us no
guarantee that it will always return these two direntries, there was a
fundamental problem with this design.

To fix this problem, I have rearchitected the onefs_readdir() path to keep
its pointer on the entry which contains the resume_cookie, not the entry
which will be returned next.  Essentially, I changed onefs_readdir() from a
"return an entry then increment the cursor" model to "increment the cursor
then return an entry".  By doing this, we only require that a single entry
be within the cache: the entry containing the resume cookie.

Second, there have been numerous off-by-one bugs in my implementation of
onefs_seekdir() which did a mapping between the 64-bit resume cookie
returned by readdirplus() and its own monotonically increasing "location"
offset.  Furthermore, this design caused a somewhat frequent waste of
cycles, as in some cases we'd need to re-enumerate the entire directory to
recover the current "location" from an old resume cookie.  As this code was
somewhat difficult to understand, prone to bugs, and innefficient in some
cases I decided it was better to wholesale replace it now, rather than later.

It is possible to algorithmically map the 64-bit resume cookies from
readdirplus() into 32-bit offset values which SMB requires.  The onefs.so
module now calls into a system library to do this conversion.  This greatly
simplifies both the seekdir() and telldir() paths and is more efficient.

14 years agolibcli: Fix shadowed name in header also
Tim Prouty [Mon, 4 May 2009 21:38:59 +0000 (14:38 -0700)]
libcli: Fix shadowed name in header also

14 years agos3 torture: Only close if open was successful
Tim Prouty [Mon, 4 May 2009 20:26:02 +0000 (13:26 -0700)]
s3 torture: Only close if open was successful

14 years agoEnsure we use UID-REGRESSION-TEST. It's a very short test.
Jeremy Allison [Mon, 4 May 2009 18:22:13 +0000 (11:22 -0700)]
Ensure we use UID-REGRESSION-TEST. It's a very short test.
Jeremy.

14 years agoTorture test for bug #6315 - smbd crashes doing vfs_full_audit on IPC$ close event.
Jeremy Allison [Mon, 4 May 2009 17:40:57 +0000 (10:40 -0700)]
Torture test for bug #6315 - smbd crashes doing vfs_full_audit on IPC$ close event.
Shows that doing a tdis with invalid uid succeeds.
Jeremy.

14 years agos3 torture: Fix comparison is always true warning
Tim Prouty [Mon, 4 May 2009 15:51:55 +0000 (08:51 -0700)]
s3 torture: Fix comparison is always true warning

14 years agolibcli: Fix shadowed variable warning
Tim Prouty [Mon, 4 May 2009 15:50:35 +0000 (08:50 -0700)]
libcli: Fix shadowed variable warning

14 years agoFix bug #6315 smbd crashes doing vfs_full_audit on IPC$ close event.
Jeremy Allison [Mon, 4 May 2009 15:31:40 +0000 (08:31 -0700)]
Fix bug #6315 smbd crashes doing vfs_full_audit on IPC$ close event.
The underlying problem
is that once SMBulogoff is called, all server_info contexts associated with the
vuid should become invalid, even if that's the context being currently used by
the connection struct (tid). When the SMBtdis comes in it doesn't need a valid
vuid value, but the code called inside vfs_full_audit always assumes that there
is one (and hence a valid conn->server_info pointer) available.

This is actually a bug inside the vfs_full_audit and other code inside Samba,
which should only indirect conn->server_info on calls which require AS_USER to
be set in our process table. I could fix all these issues, but there's no
guarentee that someone might not add more code that fails this assumption, as
it's a hard assumption to break (it's usually true).

So what I've done is to ensure that on SMBulogoff the previously used
conn->server_info struct is kept around to be used for print debugging purposes
(it won't be used to change to an invalid user context, as such calls need
AS_USER set). This isn't strictly correct, as there's no association with the
(now invalid) context being freed and the call that causes conn->server_info to
be indirected, but it's good enough for most cases.

The hard part was to ensure that once a valid context is used again (via new
sessionsetupX calls, or new calls on a still valid vuid on this tid) that we
don't leak memory by simply replacing the stored conn->server_info pointer. We
would never actually leak the memory (as all conn->server_info pointers are
talloc children of conn), but with the previous patch a malicious client could
cause many server_info structs to be talloced by the right combination of SMB
calls. This new patch introduces free_conn_server_info_if_unused(), which
protects against the above.
Jeremy.

14 years agos3/packaging: Add keyutils-devel to build requires.
Karolin Seeger [Mon, 4 May 2009 13:54:34 +0000 (15:54 +0200)]
s3/packaging: Add keyutils-devel to build requires.

This should fiy bug #5853. Thanks to D.L. Meyer <dlmeyer [at] uiuc.edu>
for reporting.

Karolin

14 years agos3/docs: Fix typo.
Karolin Seeger [Mon, 4 May 2009 13:17:30 +0000 (15:17 +0200)]
s3/docs: Fix typo.

Karolin

14 years agoDo not crash in ctdbd_traverse if ctdbd is not around
Volker Lendecke [Mon, 4 May 2009 12:39:56 +0000 (14:39 +0200)]
Do not crash in ctdbd_traverse if ctdbd is not around

14 years agoIncrease debug level of "create_connection_server_info failed" message
Volker Lendecke [Mon, 4 May 2009 10:36:13 +0000 (12:36 +0200)]
Increase debug level of "create_connection_server_info failed" message

I don't think we should unconditionally send every refused connection attempt
to a share to syslog, that's where all debug level 0 messages end up.

14 years agos3-printing: Fix driver upload for Xerox 4110 PS printer driver.
Günther Deschner [Fri, 1 May 2009 00:17:23 +0000 (02:17 +0200)]
s3-printing: Fix driver upload for Xerox 4110 PS printer driver.

We need to allow to set filesystem capabilities from the default vfs in
create_conn_struct() in order to find mixed-case filenames. Thanks Volker!

This one was hard to find, so a little longer explanation:

When a Windows client tries to upload e.g. the Xerox 4110 PS driver, the client
first uploads the driver files to the [print$] share. Some of them (in this case
the Windows Postscript drivers) are with uppercase filenames while some of them
(like the PPD file) are in lowercase. After the driver upload the client issues
the spoolss_AddPrinterDriverEx() call with level 6. There the client tries to
add the PPD file with an uppercase filename (while having stored it in lowercase
on the server). The internal spoolss add driver functions then could not find the
appropriate filename while trying to move them to the version subdirectory (in
this case W32X86/3) and fails then entire spoolss_AddPrinterDriverEx() call.
With this fix, the convert_unix_name() name finds the correct file and
the spoolss_AddPrinterDriverEx() succeeds.

Guenther

14 years agoFix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check!
Volker Lendecke [Sun, 3 May 2009 21:05:11 +0000 (23:05 +0200)]
Fix Coverity ID 913 (NEGATIVE_RETURNS) -- gd, please check!

14 years agoFix an invalid type warning
Volker Lendecke [Sun, 3 May 2009 20:46:05 +0000 (22:46 +0200)]
Fix an invalid type warning

14 years agoFix some warnings due to uint16_t!=-1 always being true
Volker Lendecke [Sun, 3 May 2009 20:45:42 +0000 (22:45 +0200)]
Fix some warnings due to uint16_t!=-1 always being true

14 years agoFix a bunch of type-punned warnings -- gd, please fix properly :-)
Volker Lendecke [Sun, 3 May 2009 20:44:36 +0000 (22:44 +0200)]
Fix a bunch of type-punned warnings -- gd, please fix properly :-)

14 years agoFix bug 6136: New AFS syscall conventions
Geza Gemes [Sun, 3 May 2009 20:13:36 +0000 (22:13 +0200)]
Fix bug 6136: New AFS syscall conventions

Haven't checked this myself, but as I've already got several reports that Samba
won't compile against current OpenAFS anymore, I just believe Geza Gemes. This
patch only affects AFS code, so it should not hurt anything else.

Volker

14 years agoClean up after Tridge's util_strlist changes
Volker Lendecke [Sun, 3 May 2009 11:08:46 +0000 (13:08 +0200)]
Clean up after Tridge's util_strlist changes

14 years agos3/docs: Fix typos.
Karolin Seeger [Sun, 3 May 2009 07:55:46 +0000 (09:55 +0200)]
s3/docs: Fix typos.

That fixes bug #4247. Thanks to David McNeill <davemc [at] mcpond.co.nz>
for reporting!

Karolin

14 years agos3/docs: Fix typo.
Karolin Seeger [Sun, 3 May 2009 07:35:55 +0000 (09:35 +0200)]
s3/docs: Fix typo.

This fixes bug #4245. Thanks to David McNeill <davemc [at] mcpond.co.nz>
for reporting!

Karolin

14 years agoOf course, s_addr is a #define somewhere else .... (Solaris...)
Volker Lendecke [Sat, 2 May 2009 21:34:45 +0000 (23:34 +0200)]
Of course, s_addr is a #define somewhere else .... (Solaris...)

14 years agoFix a warning on host "gwen"
Volker Lendecke [Sat, 2 May 2009 17:17:23 +0000 (19:17 +0200)]
Fix a warning on host "gwen"

cc: "../librpc/ndr/ndr_basic.c", line 572: warning 604: Pointers are not assignment-compatible.

Apparently in_addr.s_addr is not compatible to uint32_t, maybe a 32-bit signed
int.

14 years agoAttempt to fix the build on SerNet-sles8
Volker Lendecke [Sat, 2 May 2009 17:11:52 +0000 (19:11 +0200)]
Attempt to fix the build on SerNet-sles8

That compiler does not like #if embedded into the macro NT_STATUS_IS_OK.

14 years agoExplicitly link in pthreads for lib/pthreadpool if required
Volker Lendecke [Sat, 2 May 2009 15:14:36 +0000 (17:14 +0200)]
Explicitly link in pthreads for lib/pthreadpool if required

No idea why it works on my Linux without -lpthread ... :-)

14 years agoFix Coverity 911: FORWARD_NULL. Metze, please check!
Volker Lendecke [Sat, 2 May 2009 11:12:57 +0000 (13:12 +0200)]
Fix Coverity 911: FORWARD_NULL. Metze, please check!

14 years agoAttempt to fix the merged build on OpenSuSE 10.2
Volker Lendecke [Sat, 2 May 2009 10:53:30 +0000 (12:53 +0200)]
Attempt to fix the merged build on OpenSuSE 10.2

Python.h 2.5 on that platform does not #include the necessary headers
to see uintptr_t.

14 years agoFix a malloc/talloc mixup
Volker Lendecke [Sat, 2 May 2009 10:40:29 +0000 (12:40 +0200)]
Fix a malloc/talloc mixup

14 years agoFix dependency on the attributes file.
Jelmer Vernooij [Fri, 1 May 2009 23:10:20 +0000 (01:10 +0200)]
Fix dependency on the attributes file.

14 years agoRemove unused entries from clean.
Jelmer Vernooij [Fri, 1 May 2009 22:39:49 +0000 (00:39 +0200)]
Remove unused entries from clean.

14 years agoRemove rules for unused epstopdf.
Jelmer Vernooij [Fri, 1 May 2009 21:53:27 +0000 (23:53 +0200)]
Remove rules for unused epstopdf.

14 years agoRemove XSLT script to generate image dependencies, instead rely on make
Jelmer Vernooij [Fri, 1 May 2009 21:50:49 +0000 (23:50 +0200)]
Remove XSLT script to generate image dependencies, instead rely on make
given that the number of image formats we use is limited.

14 years agoRemove text chunks support. Was never built by any of the main targets,
Jelmer Vernooij [Fri, 1 May 2009 21:10:59 +0000 (23:10 +0200)]
Remove text chunks support. Was never built by any of the main targets,
and one of the reasons the complex dependency system exists.

14 years agoAttempt to the build on NetBSD5 and a few others
Volker Lendecke [Fri, 1 May 2009 21:25:31 +0000 (23:25 +0200)]
Attempt to the build on NetBSD5 and a few others

14 years agofind_unused_doc: Strip spaces in configuration names, just like the parser does.
Jelmer Vernooij [Fri, 1 May 2009 20:58:39 +0000 (22:58 +0200)]
find_unused_doc: Strip spaces in configuration names, just like the parser does.

14 years agoUse <example> + <smbconfblock> rather than nonexistant element
Jelmer Vernooij [Fri, 1 May 2009 20:33:29 +0000 (22:33 +0200)]
Use <example> + <smbconfblock> rather than nonexistant element
<smbconfexample>.

14 years agoIgnore docs-xml/output directory and its contents as well as png files
Jelmer Vernooij [Fri, 1 May 2009 20:29:57 +0000 (22:29 +0200)]
Ignore docs-xml/output directory and its contents as well as png files
generated run-time from versioned svg files.

14 years agoFix a couple of invalid DocBook XML usages in the Samba3 Developers Guide.
Jelmer Vernooij [Fri, 1 May 2009 20:28:08 +0000 (22:28 +0200)]
Fix a couple of invalid DocBook XML usages in the Samba3 Developers Guide.

14 years agoFix most of the invalid usages of DocBook in the Samba 3 HOWTO.
Jelmer Vernooij [Fri, 1 May 2009 20:27:03 +0000 (22:27 +0200)]
Fix most of the invalid usages of DocBook in the Samba 3 HOWTO.
make check FTW!

14 years agoFix a bunch of XML validation errors.
Jelmer Vernooij [Fri, 1 May 2009 20:00:19 +0000 (22:00 +0200)]
Fix a bunch of XML validation errors.

14 years agoRemove broken XSL-FO translation code; this has been broken for a while
Jelmer Vernooij [Fri, 1 May 2009 19:09:13 +0000 (21:09 +0200)]
Remove broken XSL-FO translation code; this has been broken for a while
and the output was never used.

14 years agoAdd more output generated by the documentation build process to .gitignore.
Jelmer Vernooij [Fri, 1 May 2009 18:57:47 +0000 (20:57 +0200)]
Add more output generated by the documentation build process to .gitignore.

14 years agoMove expansion of Samba-specific XML elements out of xslt/latex.xsl into a
Jelmer Vernooij [Fri, 1 May 2009 18:51:43 +0000 (20:51 +0200)]
Move expansion of Samba-specific XML elements out of xslt/latex.xsl into a
separate file, for better readability. xslt/latex.xsl now only contains
tweaks to the dblatex configuration.

14 years agoExplicitly mention licenses in all stylesheets
Jelmer Vernooij [Fri, 1 May 2009 18:36:56 +0000 (20:36 +0200)]
Explicitly mention licenses in all stylesheets

14 years agoRemove the DTD for the removed pdb-xml backend.
Jelmer Vernooij [Fri, 1 May 2009 18:27:48 +0000 (20:27 +0200)]
Remove the DTD for the removed pdb-xml backend.

14 years agoGenerate pdf documents in-place rather than copying them from . to output/
Jelmer Vernooij [Fri, 1 May 2009 18:25:34 +0000 (20:25 +0200)]
Generate pdf documents in-place rather than copying them from . to output/

14 years agoRemove unused and unsubstituted variables from Makefile.settings.in.
Jelmer Vernooij [Fri, 1 May 2009 18:03:30 +0000 (20:03 +0200)]
Remove unused and unsubstituted variables from Makefile.settings.in.

14 years agoRemove references to dia now that we use inkscape for diagrams.
Jelmer Vernooij [Fri, 1 May 2009 18:01:37 +0000 (20:01 +0200)]
Remove references to dia now that we use inkscape for diagrams.

14 years agoFix build of the PostScript documents.
Jelmer Vernooij [Fri, 1 May 2009 17:56:08 +0000 (19:56 +0200)]
Fix build of the PostScript documents.

14 years agoFix dependencies on images for pdf and ps files.
Jelmer Vernooij [Fri, 1 May 2009 16:32:24 +0000 (18:32 +0200)]
Fix dependencies on images for pdf and ps files.

14 years agoRemove unnecessary checks for apps now used through dblatex.
Jelmer Vernooij [Fri, 1 May 2009 16:32:21 +0000 (18:32 +0200)]
Remove unnecessary checks for apps now used through dblatex.

14 years agoRemove use of unicode quotes, as it confuses LaTeX.
Jelmer Vernooij [Fri, 1 May 2009 16:05:45 +0000 (18:05 +0200)]
Remove use of unicode quotes, as it confuses LaTeX.

14 years agoUse standard LaTeX book document class rather than custom samba class.
Jelmer Vernooij [Fri, 1 May 2009 15:38:25 +0000 (17:38 +0200)]
Use standard LaTeX book document class rather than custom samba class.

14 years agoTrim the requirements for building the docs, remove outdated instructions
Jelmer Vernooij [Fri, 1 May 2009 15:24:11 +0000 (17:24 +0200)]
Trim the requirements for building the docs, remove outdated instructions
for db2latex.

14 years agoMove test image to test/images/, consistent with the other books.
Jelmer Vernooij [Fri, 1 May 2009 15:21:35 +0000 (17:21 +0200)]
Move test image to test/images/, consistent with the other books.

14 years agoCut out the intermediate dvi files in the Makefile - dblatex can take care
Jelmer Vernooij [Fri, 1 May 2009 15:20:01 +0000 (17:20 +0200)]
Cut out the intermediate dvi files in the Makefile - dblatex can take care
of those for us.

14 years agoRemove reference to (removed?) image copy script.
Jelmer Vernooij [Fri, 1 May 2009 15:10:28 +0000 (17:10 +0200)]
Remove reference to (removed?) image copy script.

14 years agoRemove admon graphics - provided by dblatex now.
Jelmer Vernooij [Fri, 1 May 2009 15:06:06 +0000 (17:06 +0200)]
Remove admon graphics - provided by dblatex now.

14 years agoAlso move \linebreaksign to the samba LaTeX package.
Jelmer Vernooij [Fri, 1 May 2009 15:02:34 +0000 (17:02 +0200)]
Also move \linebreaksign to the samba LaTeX package.

14 years agoSplit Samba-specific LaTeX commands into their own LaTeX package,
Jelmer Vernooij [Fri, 1 May 2009 14:48:01 +0000 (16:48 +0200)]
Split Samba-specific LaTeX commands into their own LaTeX package,
independent of the style changes made by the sambadoc documentclass.

14 years agoFix syntax errors (title is mandator for chapters) in Samba4-HOWTO.
Jelmer Vernooij [Fri, 1 May 2009 13:43:49 +0000 (15:43 +0200)]
Fix syntax errors (title is mandator for chapters) in Samba4-HOWTO.

14 years agoUse new stylesheet variables names as used by dblatex.
Jelmer Vernooij [Fri, 1 May 2009 13:34:13 +0000 (15:34 +0200)]
Use new stylesheet variables names as used by dblatex.
Remove a Samba-specific workaround for a db2latex bug.

14 years agoFix dblatex warning: Remove reference to removed DTD file.
Jelmer Vernooij [Fri, 1 May 2009 13:33:40 +0000 (15:33 +0200)]
Fix dblatex warning: Remove reference to removed DTD file.

14 years agoRemove included (but unused) copy of db2latex.
Jelmer Vernooij [Fri, 1 May 2009 13:31:52 +0000 (15:31 +0200)]
Remove included (but unused) copy of db2latex.

14 years agoUse system-provided dblatex to build the docs rather than included
Jelmer Vernooij [Fri, 1 May 2009 13:31:14 +0000 (15:31 +0200)]
Use system-provided dblatex to build the docs rather than included
db2latex.

14 years agoMake the test document include a Samba-specific XML element and an image.
Jelmer Vernooij [Fri, 1 May 2009 13:28:31 +0000 (15:28 +0200)]
Make the test document include a Samba-specific XML element and an image.

14 years agoLook for dblatex.
Jelmer Vernooij [Fri, 1 May 2009 12:14:30 +0000 (14:14 +0200)]
Look for dblatex.

14 years agoMany build farm boxes do not have clock_gettime
Volker Lendecke [Fri, 1 May 2009 19:34:12 +0000 (21:34 +0200)]
Many build farm boxes do not have clock_gettime

14 years agos4:rpc_server: convert the socket based part to use the tstream interface
Stefan Metzmacher [Tue, 7 Apr 2009 16:35:30 +0000 (18:35 +0200)]
s4:rpc_server: convert the socket based part to use the tstream interface

metze

14 years agos4:smbd: depend on NAMED_PIPE_AUTH_TSTREAM...
Stefan Metzmacher [Mon, 6 Apr 2009 09:05:59 +0000 (11:05 +0200)]
s4:smbd: depend on NAMED_PIPE_AUTH_TSTREAM...

metze

14 years agolibcli/named_pipe_auth: add tstream_npa_connect_send/recv()
Stefan Metzmacher [Thu, 12 Mar 2009 17:10:19 +0000 (18:10 +0100)]
libcli/named_pipe_auth: add tstream_npa_connect_send/recv()

Add a tstream client implemenation for the named pipe auth
code. This supports byte and message mode.

metze

14 years agos4:smbd: add support for named_pipe_auth level 2 in service_named_pipe...
Stefan Metzmacher [Tue, 21 Apr 2009 02:55:42 +0000 (04:55 +0200)]
s4:smbd: add support for named_pipe_auth level 2 in service_named_pipe...

metze

14 years agorerun "make idl"
Stefan Metzmacher [Tue, 21 Apr 2009 02:48:48 +0000 (04:48 +0200)]
rerun "make idl"

metze

14 years agonamed_pipe_auth.idl: add level 2 and pass the client/server info and session key
Stefan Metzmacher [Tue, 21 Apr 2009 02:44:08 +0000 (04:44 +0200)]
named_pipe_auth.idl: add level 2 and pass the client/server info and session key

We also return can return the named pipe mode now.

metze

14 years agotsocket: add tstream_readv_pdu_queue_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 16:49:24 +0000 (18:49 +0200)]
tsocket: add tstream_readv_pdu_queue_send/recv()

metze

14 years agotsocket: add tstream_writev_queue_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 16:18:51 +0000 (18:18 +0200)]
tsocket: add tstream_writev_queue_send/recv()

metze

14 years agotsocket: add tstream_readv_pdu_send/recv()
Stefan Metzmacher [Fri, 3 Apr 2009 15:17:15 +0000 (17:17 +0200)]
tsocket: add tstream_readv_pdu_send/recv()

metze

14 years agotsocket: add tstream implementation for bsd sockets (inet and unix)
Stefan Metzmacher [Fri, 3 Apr 2009 10:15:27 +0000 (12:15 +0200)]
tsocket: add tstream implementation for bsd sockets (inet and unix)

metze

14 years agotsocket: add tstream_context infrastructure similar to tdgram_context
Stefan Metzmacher [Fri, 3 Apr 2009 16:08:10 +0000 (18:08 +0200)]
tsocket: add tstream_context infrastructure similar to tdgram_context

metze

14 years agotsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()
Stefan Metzmacher [Thu, 30 Apr 2009 11:10:54 +0000 (13:10 +0200)]
tsocket: rename tdgram_unix_dgram_socket() => tdgram_unix_socket()

metze

14 years agotsocket: move tsocket_simple_int_recv() to tsocket.c
Stefan Metzmacher [Fri, 3 Apr 2009 15:54:08 +0000 (17:54 +0200)]
tsocket: move tsocket_simple_int_recv() to tsocket.c

metze

14 years agotsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.c
Stefan Metzmacher [Fri, 3 Apr 2009 15:52:15 +0000 (17:52 +0200)]
tsocket: move tsocket_sendto_queue_send/recv() to tsocket_helpers.c

metze

14 years agotsocket: tdgram move input checks to the common code as there're needed for all backends
Stefan Metzmacher [Tue, 14 Apr 2009 08:44:25 +0000 (10:44 +0200)]
tsocket: tdgram move input checks to the common code as there're needed for all backends

We need to make sure that we free the sendto and recvfrom requests before
the tdgram_context

metze

14 years agotsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)
Stefan Metzmacher [Mon, 6 Apr 2009 12:29:24 +0000 (14:29 +0200)]
tsocket: for unix domain sockets we need to use sizeof(struct sockaddr_un)

sizeof(struct sockaddr_storage) generates EINVAL.

metze

14 years agotsocket: return EINVAL when tdgram_sendto_send() is used with len == 0
Stefan Metzmacher [Fri, 10 Apr 2009 18:35:12 +0000 (20:35 +0200)]
tsocket: return EINVAL when tdgram_sendto_send() is used with len == 0

metze

14 years agotsocket: fix dependecies
Stefan Metzmacher [Mon, 6 Apr 2009 12:27:24 +0000 (14:27 +0200)]
tsocket: fix dependecies

metze

14 years agotsocket: remove tsocket_context related stuff
Stefan Metzmacher [Fri, 3 Apr 2009 15:29:12 +0000 (17:29 +0200)]
tsocket: remove tsocket_context related stuff

It will be replaced by tdgram_context and tstream_context.

metze

14 years agos4:libcli: remember operating system and lan manager strings from session setup
Stefan Metzmacher [Fri, 1 May 2009 13:03:33 +0000 (15:03 +0200)]
s4:libcli: remember operating system and lan manager strings from session setup

metze

14 years agos4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error
Stefan Metzmacher [Thu, 30 Apr 2009 15:24:58 +0000 (17:24 +0200)]
s4:libcli/raw: write can return STATUS_BUFFER_OVERFLOW as a real error

We should not try to parse the result if the status is not NT_STATUS_OK.

metze

14 years agoFix regular expressions in find_missing_doc after code format changes in
Jelmer Vernooij [Fri, 1 May 2009 02:51:46 +0000 (04:51 +0200)]
Fix regular expressions in find_missing_doc after code format changes in
loadparm.c.

14 years agoFix 'make undocumented' (by hardcoding the source path, now that the docs
Jelmer Vernooij [Fri, 1 May 2009 02:40:55 +0000 (04:40 +0200)]
Fix 'make undocumented' (by hardcoding the source path, now that the docs
live in the same git repo)

14 years agoFilter substitution variables out of list of undocumented applications.
Jelmer Vernooij [Fri, 1 May 2009 02:38:19 +0000 (04:38 +0200)]
Filter substitution variables out of list of undocumented applications.

14 years agoFix 'make samples' (git doesn't version directories, so 'examples' won't
Jelmer Vernooij [Fri, 1 May 2009 02:34:23 +0000 (04:34 +0200)]
Fix 'make samples' (git doesn't version directories, so 'examples' won't
exist yet)

14 years agoAdd getaddrinfo_send/recv
Volker Lendecke [Sat, 25 Apr 2009 22:01:43 +0000 (00:01 +0200)]
Add getaddrinfo_send/recv