1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-01 05:47:28 +03:00

10419 Commits

Author SHA1 Message Date
Andrew Bartlett
af3124067f debugparse is a seperate utility, no need to include it in the main ubiqx
objects.

Andrew Bartlett
(This used to be commit 23abf75adef2f400414dfafa1248f5f886ae27c0)
2003-01-02 12:58:23 +00:00
Andrew Bartlett
a746483fd8 Add PRINTF_ATTRIBUTE() to a few more printf() style functions. Aids in
compiler-based argument checking.
(This used to be commit 16fe928e68623a878b125910ff83df500a29d0ce)
2003-01-02 12:54:02 +00:00
Andrew Bartlett
e030b91bf8 Call me parinoid, but I don't like the idea that we could ever have dbf point
to a closed file.  Swap the assign and the close around.

Andrew Bartlett
(This used to be commit ceb2a7984910533187d3345440c24b605306e3cb)
2003-01-02 12:53:04 +00:00
Andrew Bartlett
b0851cb1c7 Add a dash of static.
(This used to be commit 6d201c9616c5c30234c0d0d6cd9e2ca60bf736c5)
2003-01-02 12:39:36 +00:00
Volker Lendecke
94fec25c5f One more const. Andrew, you seem to have krb5 :-)
Volker
(This used to be commit f5494f5ef6a14020bd31541b1f87d48111f60ad8)
2003-01-02 09:40:10 +00:00
Andrew Bartlett
6d66fb308a BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
(This used to be commit 92a777d0eaa4fb3a1c7835816f93c6bdd456816d)
2003-01-02 09:07:17 +00:00
Richard Sharpe
c105c12d12 Document the size constraints on a write request.
(This used to be commit 5d6c1810330b38e48355078b7a5d53e7b5076f74)
2003-01-01 21:54:00 +00:00
Andrew Bartlett
60f9614400 Move our password change code along a little - use NTSTATUS, and implmenet
minimum password age and min password length for all password changes.

Andrew Bartlett
(This used to be commit 028f808c032becfa4618924cb301a4af2708fa96)
2003-01-01 04:19:34 +00:00
Simo Sorce
2eb7a80a46 fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
(This used to be commit 63a669475b0ea319da12a87ee4635b1d071ff29f)
2002-12-31 10:23:37 +00:00
Simo Sorce
ed961ddf44 ignore tdbsam2_parse_info.h
(This used to be commit 1a1c746c9fde965d2ad3f8fb9c1b0263754745e8)
2002-12-31 00:45:35 +00:00
Jeremy Allison
944fb243eb Catching up with old patches. Add define for VERITAS quota support.
Check return in ldap.
Jeremy.
(This used to be commit e789edbb287319f52f49f2999917a610565144d9)
2002-12-30 23:55:58 +00:00
Simo Sorce
a2244a4eca fix also net rpc shutdown
sorry
(This used to be commit 1eff36ff2fd20ff1844800acefb31972ad865527)
2002-12-30 23:38:17 +00:00
Simo Sorce
60667264b7 the shutdown call does not have a 16 bit flags, but 2 byte representing booleans
this commit change the structure and code to reflect this

some test revelead I'm right.

some other revelead currently the abort shutdown does not work against my test machine even if it returns successfully ... need investigation
(This used to be commit c5892b656dedd0367adc33d9606311d1dde99a58)
2002-12-30 04:41:27 +00:00
Richard Sharpe
b68e6c9910 Port the fix to cli_setup_write to handle offsets greater than 32-bits from
Samba 2.2.x ...
(This used to be commit 4201038588bab8674b73371a5eac70a412c5dd6c)
2002-12-30 04:25:30 +00:00
Andrew Bartlett
72caa1fc8d Add a new VFS module, that just fiddles the file permissions. Still need to
make it fiddle with NT ACLs (or report no ACL, so Samba fakes it up).

The idea here is that Samba reports an NT ACL to Windows clients, which use
that ACL in downloaded profiles.

If the user doesn't have write permissions on the directories being downloaded,
then it cant put the subfolders in (yes, NT will set perms so that it can't
access the dir as the user the created it) and the profile download fails.

The current solution it to give the user unix write perms to the folders, but
this is rather dangerous - sombody could trojen the profile.  This should
avoid that mess.

I'll test this out properly next week, but it works in vfstest (thanks idra!).

Andrew Bartlett
(This used to be commit 1ad782282a3eb4f89c489a77ad8404099d41d0f9)
2002-12-30 04:19:57 +00:00
Shirish Kalele
ab42271cd6 Add msdfs proxy functionality to HEAD.
(This used to be commit 9df93b1ffc9ce98302540cc3d2cbd66787abc4fd)
2002-12-29 23:29:08 +00:00
Jeremy Allison
561a6634b2 Revert by Simo's request. HEAD and 3.0 should be in sync for
this except for the modules load.
Jeremy.
(This used to be commit c7c3afbd0de8bd8797f91d350368a2419fcede0e)
2002-12-28 19:48:56 +00:00
Simo Sorce
5bee95239b some more work on gums.
- Building a tdbsam2 backend to see what I got right and what not about the proposed API
- Corrections to API based on tdbsam2 work
(This used to be commit 54f11b7de84233209b7db2d01d876f9c6c6340d6)
2002-12-28 13:42:54 +00:00
Jeremy Allison
10c50fb580 Patch for coredump with missing arg from "Bradley W. Langhorst" <brad@langhorst.com>
Jeremy.
(This used to be commit 5914c38a54fcfdb007352b152dc2206708d59af6)
2002-12-28 01:23:34 +00:00
Richard Sharpe
b3c3701c07 For some reason, the configure tests for sendfile support in FreeBSD
were broken. This works for 4.3 and 4.6.2.
(This used to be commit 91e2d21bd1401ca874c59f4d93f8b429c38b642d)
2002-12-27 22:55:11 +00:00
Jelmer Vernooij
ec07c8aed9 Update link
(This used to be commit 03d8d0285e86bd4ee35f6efec835171eb28502da)
2002-12-24 02:04:09 +00:00
Jelmer Vernooij
4a270d477a Put in actual status
(This used to be commit 36722b02b0fb494151bc1ab28ba28b09b298e38e)
2002-12-24 02:01:35 +00:00
Jelmer Vernooij
d49474fa41 Add note about storing mysql passwords in smb.conf
(This used to be commit a2de27a6846e3e05778fa7f0af0dbc76e82b52b3)
2002-12-24 01:41:10 +00:00
Jeremy Allison
0fdf60f051 Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit 784d15761c3271bfd602866f8f9f880dac77671c)
2002-12-23 23:53:56 +00:00
Andrew Tridgell
54af5d0f25 the 'padding' field in the query domain info reply is not a padding
field at all. It seems to be an optional 12 byte structure of some
kind. mkaplan found a situation where the structure was not present at
all (depending on ptr_0)
(This used to be commit d7f18c60f73a3acb00ec9b1f9c605cc8c9d690a7)
2002-12-23 20:22:20 +00:00
Jeremy Allison
b95b82b798 talloc_init_named -> talloc_init.
Jeremy.
(This used to be commit 20a44d4cf11d91e7a09176bfe673ad0cb230dffe)
2002-12-22 16:02:36 +00:00
Jeremy Allison
7f23546730 Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
(This used to be commit 842e08e52a665ae678eea239759bb2de1a0d7b33)
2002-12-20 20:23:06 +00:00
Tim Potter
45a6532727 Fixed bug in debug statement when tconX fails.
(This used to be commit a2159610b9d38cc7cfa7cb877ccee816cd2206b8)
2002-12-20 01:07:09 +00:00
Jeremy Allison
574c676c94 Protect nmbd against malformed reply packets. Some reports on the lists showing
these.
Jeremy.
(This used to be commit 65d5bf65c439aee1450e330a9f2bd829d9b2c2d0)
2002-12-19 22:14:53 +00:00
Herb Lewis
c52a34693d merge from 2.2 fix for smbclient large files
(This used to be commit 723c4caf64c56b78052c52fec78c7143ec19e944)
2002-12-19 20:23:45 +00:00
Herb Lewis
c26dd35c76 merge from 2.2
actually print args for %g and %e
(This used to be commit 47a0ba53fdf52fb4d269b1ff95491e73e47423be)
2002-12-19 19:56:31 +00:00
Gerald Carter
846b50cd41 app_head merge for get_friendly_nt_err()
(This used to be commit 3ceff08eb75ecd70dcf10d033c7451d87b659c0b)
2002-12-17 22:53:56 +00:00
Herb Lewis
2134817842 fix make proto to work with SGI smake
(This used to be commit 773e5af6eb61fc38f8e45ea0a2afd6922cc71fd5)
2002-12-17 21:45:50 +00:00
Gerald Carter
b1cfbb0f69 * fix memory leak when constructing an driver_level_6 structure
and no dependent files (working on smbd memory leak).  No CR# yet.
(This used to be commit f017fa7c478f87165b7b6aa83059fe6fad29ac15)
2002-12-17 21:35:56 +00:00
Richard Sharpe
a3460ac9ba Start adding code to allow the in memory version of the registry tree
structure to be manipulated. Keys can be partially deleted now.
(This used to be commit 9181ba0c682c3f37bbbaab96928c39757491d225)
2002-12-17 07:45:14 +00:00
Simo Sorce
1a37c02890 it's getting comic ...
yet another missing piece :-O
(This used to be commit eb595efa7e6c260092478564e5fb3fdefcc120d8)
2002-12-17 01:38:48 +00:00
Simo Sorce
a628d7d54d Uhmm a bad day to commit changes :-((
(This used to be commit 5320d54b901b92a3a8cdf9a407651713826c6c9f)
2002-12-16 23:40:15 +00:00
Herb Lewis
96978d397a merge smbtar fixes from 2.2
(This used to be commit f3b994326ea4bfc9a74acb2901c733c35900af53)
2002-12-16 21:30:20 +00:00
Simo Sorce
b242cfe6b3 oh god, I will forgot my name one of these days :-/
(This used to be commit 0b2591cc4001dd5430591f1871b76c1a6d133b43)
2002-12-16 21:22:09 +00:00
Simo Sorce
928b534961 forgont genstruct.pl is needed to build new include files for genparse
sorry
(This used to be commit 4029dae9064e10a02006e9d0a5d8cf93e22eaed5)
2002-12-16 17:51:40 +00:00
Jim McDonough
dca69cb793 Add win32 utility to query driver capabilities to publish
(This used to be commit c09c1e090525aeccb9ee7762a44aba286c4d71f9)
2002-12-16 17:26:01 +00:00
Gerald Carter
636adbff27 fix usage message
(This used to be commit e68c7e0ebc053b97abf9c8a8213f305679ef000d)
2002-12-16 16:48:23 +00:00
Simo Sorce
48fb7b090e updates to the gums
introduce genparser will be used by tdbsam2
(This used to be commit 831d3d1ec751f23481f26b31d22b09f3d9c0709a)
2002-12-16 12:11:02 +00:00
Richard Sharpe
f35c421f5b We now read in the whole of the registry, including security bits.
Still have to make sure that the datastructure is correct, though.

Then on to writing it out and editing/changing keys, values and sec_descriptors
(This used to be commit 8686b551cd0158a72c1ba4dfea6af5d0d7049210)
2002-12-16 03:23:25 +00:00
Tim Potter
099c284c47 Fix fnum leak under error condition in cacl_dump.
(This used to be commit ab337572b82a0b40b56f055cdbb2f5864ef10c87)
2002-12-15 23:24:08 +00:00
Richard Sharpe
2e41b42d5a All the code for reading in the registy is done, but I have a malloc'd
area overrun somewhere :-(
(This used to be commit 330012a4d787c8b4a2eb6a4b77f53110815e073e)
2002-12-15 08:35:19 +00:00
Richard Sharpe
01a6f42443 Almost finished processing the registry encoded SEC DESC ...
Soon to move onto writing these things out.
(This used to be commit eb2f1c826b28647fc99b46e203fe90147f7f3d05)
2002-12-15 06:39:17 +00:00
Richard Sharpe
4fb520c45f More code to read in and create security descriptor entries ...
(This used to be commit 3564565d33e0e3a691e5014e39ab2e5156112a08)
2002-12-14 07:36:34 +00:00
Jeremy Allison
96791a9aa4 Ensure talloc pool query messages are reserved.
Jeremy.
(This used to be commit 3520195523c629c4d936db6b0112bd4bd4426ad7)
2002-12-14 01:33:02 +00:00
Jeremy Allison
a030b19767 The name pointer in the talloc context must not be a talloced entry as
calling talloc_destroy_pool(as we do sometimes) will destroy it.
Jeremy.
(This used to be commit 63f344e27be5aaf2204899fea7d53a7302001108)
2002-12-14 00:57:01 +00:00