1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

10216 Commits

Author SHA1 Message Date
Martin Pool
da3b671f77 In Valgrind 1.9.4, the headers have moved to <valgrind/valgrind.h>,
etc.  So check for that as well as the old names when including macros
and conditionally defining -DVALGRIND.
(This used to be commit 054ed6d86d)
2003-03-13 06:48:06 +00:00
Jeremy Allison
dbe2858b86 Change size parameters from signed to unsigned to fix up warnings.
Jeremy.
(This used to be commit 33b11d5eb5)
2003-03-13 00:51:05 +00:00
Jeremy Allison
30d1059b7a Merge of Andrew Bartlett's SID limit fix from HEAD.
Jeremy.
(This used to be commit 98ed7e0cbb)
2003-03-13 00:50:04 +00:00
Andrew Tridgell
a412ed39de fixed a strcat noticed by metze
(This used to be commit 533fe94db9)
2003-03-12 21:02:45 +00:00
Jeremy Allison
a03a4db8ae Ensure we count the length correctly in mangle_map.
Jeremy.
(This used to be commit 8e956bc1d6)
2003-03-12 19:07:49 +00:00
Gerald Carter
fd56ede2b6 adding some initiaial code to sert %a to Win2K3 (using Native LanMan string from .NET RC2)
(This used to be commit e074cab810)
2003-03-12 15:41:39 +00:00
Jeremy Allison
834da49f63 We use unsigned now, so use %u.
Jeremy.
(This used to be commit 65c2a361a4)
2003-03-11 20:58:10 +00:00
Jeremy Allison
71708c9c07 Fix up zero termination. Spotted by Sebastian Krahmer <krahmer@suse.de>.
Jeremy.
(This used to be commit 289e2e25b9)
2003-03-11 18:10:27 +00:00
Martin Pool
d606f8cb1e When opening an existing DB, don't require the hash_size specified to
the open call to be the same as that of the existing tdb.  The
specified hash_size is only used if the tdb needs to be (re)created.

With this patch in place, tdbtool can open the printing tdbs, which
are created with a hash_size of 5000.  Before it would fail with EIO.
(This used to be commit 7090d9f693)
2003-03-11 04:41:22 +00:00
Martin Pool
4724780212 Patch from Ronan Waide:
> when doing "enumdomusers", rpcclient prints each one preceded by the
> word "group" instead of "user"
(This used to be commit 0e9a2f41df)
2003-03-11 03:41:21 +00:00
Tim Potter
7da4263014 Remove obsolete file.
(This used to be commit 560deeb4ec)
2003-03-11 02:32:03 +00:00
Volker Lendecke
8d563a985b strcpy_base from HEAD and trivial fix for smbclient -L
Volker
(This used to be commit 54c99ee1fb)
2003-03-10 16:54:57 +00:00
Gerald Carter
c44e39065c check a pointer before dereferencing it; not sure why userdata == NULL though
(This used to be commit 944752024b)
2003-03-10 15:04:29 +00:00
Martin Pool
3b4bc027f3 Use "$@" to preserve shell quoting in case somebody passes an escaped
string as a configure parameter.
(This used to be commit 10b2de7ebd)
2003-03-10 03:05:20 +00:00
Jeremy Allison
e613c18ee7 Fix typo in earlier fix, caught by Ranjit @ HP.
Jeremy.
(This used to be commit 11077368ec)
2003-03-08 01:16:33 +00:00
Jeremy Allison
2fd693e13e Use ERROR_NT, not ERROR_DOS as Andrew Bartlett pointed out.
Jeremy.
(This used to be commit 723e9ee31c)
2003-03-07 23:34:51 +00:00
Jeremy Allison
95381baefd Extra const committed by mistake - revert.
Jeremy.
(This used to be commit 183ce97d37)
2003-03-07 19:46:24 +00:00
Jeremy Allison
0f30afc912 Missed parentheses around complex logic.
Jeremy.
(This used to be commit 7f8d3a49b2)
2003-03-07 19:46:00 +00:00
Jeremy Allison
e9f51a6e38 Patch from Michael Steffens. In his own words :
-------------------------------------------------------------------------
I think there are basically two problem:

  1. Windows clients do not always send ACEs for SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ,
     and SMB_ACL_OTHER.
     The function ensure_canon_entry_valid() is prepared for that, but tries
     to "guess" values from group or other permissions, respectively, otherwise
     falling back to minimum r-- for the owner. Even if the owner had full
     permissions before setting ACL. This is the problem with W2k clients.

  2. Function set_nt_acl() always chowns *before* attempting to set POSIX ACLs.
     This is ok in a take-ownership situation, but must fail if the file is
     to be given away. This is the problem with XP clients, trying to transfer
     ownership of the original file to the temp file.

The problem with NT4 clients (no ACEs are transferred to the temp file, thus
are lost after moving the temp file to the original name) is a client problem.
It simply doesn't attempt to.

I have played around with that using posic_acls.c from 3.0 merged into 2.2.
As a result I can now present two patches, one for each branch. They
basically modify:

  1. Interpret missing SMB_ACL_USER_OBJ, SMB_ACL_GROUP_OBJ, or SMB_ACL_OTHER
     as "preserve current value" instead of attempting to build one ourself.
     The original code is still in, but only as fallback in case current values
     can't be retrieved.

  2. Rearrange set_nt_acl() such that chown is only done before setting
     ACLs if there is either no change of owning user, or change of owning
     user is towards the current user. Otherwise chown is done after setting
     ACLs.

It now seems to produce reasonable results. (Well, as far as it can. If
NT4 doesn't even try to transfer ACEs, only deliberate use of named default
ACEs and/or "force group" or the crystal ball can help :)
-------------------------------------------------------------------------
Jeremy.
(This used to be commit 1d3b8c528b)
2003-03-07 19:37:31 +00:00
Jeremy Allison
97d25a7374 Fix noticed by Corny.Bondad@hp.com. Ensure we free up memory on error exit.
Jeremy.
(This used to be commit 05a8a61af8)
2003-03-07 00:35:24 +00:00
Jeremy Allison
442a55b6b4 Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parameters
differently to W2K, cope with this.
Jeremy.
(This used to be commit 5e2755508f)
2003-03-07 00:30:47 +00:00
Gerald Carter
ccb58b303a add #define for the max device name length in a DEVICEMODE
(This used to be commit 52ef84b534)
2003-03-06 16:09:11 +00:00
Jeremy Allison
211dd28a7a More const fixes.
Jeremy.
(This used to be commit fa93763248)
2003-03-05 01:34:34 +00:00
Jeremy Allison
d45fe965ef Writable string const fixes.
Jeremy.
(This used to be commit c832e95c2f)
2003-03-05 01:30:15 +00:00
Jeremy Allison
6626fef5d4 Fix for little-used lpq parser.
Jeremy.
(This used to be commit 75b36459ab)
2003-03-05 00:54:47 +00:00
Jeremy Allison
6f4aee34d9 Connectathon fix. W2K -> W2K over port 445 doing a tconX does the full
\\server\share syntax, not just a "share" tconX syntax. This broke interop
with a vendor.
Jeremy.
(This used to be commit 3cc2ace771)
2003-03-05 00:54:16 +00:00
Gerald Carter
7c03402c8a preparing for release of 3.0alpha22
(This used to be commit f5c9895f83)
2003-03-04 19:39:19 +00:00
Richard Sharpe
e3fdd289f5 More janitorial duties, fixing the BIG_UINT changes for large offsets.
(This used to be commit 1af39523cc)
2003-03-03 23:00:22 +00:00
Jeremy Allison
28074d957a Const warning fixes.
Jeremy.
(This used to be commit 30e8ae8e03)
2003-03-03 20:12:37 +00:00
Jeremy Allison
52d1dd46d2 Fix const warning.
Jeremy.
(This used to be commit dedc18212a)
2003-03-03 19:56:57 +00:00
Jeremy Allison
8ce11aee91 dlysym takes a const char *.
Jeremy.
(This used to be commit 54e5413a92)
2003-03-03 19:52:27 +00:00
Gerald Carter
cc7f40f4b7 * always report ourselves as a Windows 2000 print server (even
without ADS support)
* add "MinorVersion" print server data key and comment on "OSVersion"
(This used to be commit e138336816)
2003-03-03 17:32:55 +00:00
Gerald Carter
d95f1e4260 * CR1868: only send a change notify message if we have something
that changed that the client is monitoring.

* couple of comments abnout how we need to validate driver names
  on SetPrinter() and AddPrinter()

* up the debug level on some overly verbose dev mode parsing messages
(This used to be commit e8939165b7)
2003-03-03 16:32:03 +00:00
Jeremy Allison
ba3ccc2928 Added limit to number of jobs enumerated. Set to 0 (means no limit).
Yes I will add the docs....
Jeremy.
(This used to be commit e1b0001c8d)
2003-03-01 02:39:12 +00:00
Jeremy Allison
0bf15545dd Ensure added jobs increment total_jobs.
Jeremy.
(This used to be commit a75d9fc4e1)
2003-03-01 00:49:00 +00:00
Jelmer Vernooij
938f37afc2 Fix HTTP error codes (patch by Vance Lankhaar)
(This used to be commit e660b0b8d0)
2003-02-28 08:48:26 +00:00
Martin Pool
2fa05e62c5 Remove reference to "mainpage.dox" and CodingStandards, which have
been removed.

Put subdirectory names in file list, so we get lib/util_chr.c, not
just util_chr.c.
(This used to be commit 732d94b83e)
2003-02-28 04:02:16 +00:00
Jim McDonough
82429c98f8 Move net ads lookup improvements over from HEAD
(This used to be commit 507e5738fb)
2003-02-28 03:35:45 +00:00
Jeremy Allison
e0989e1304 *Excellent* patch from Michael Steffens <michael_steffens@hp.com> to limit
the unix domain sockets used by winbindd (also solves FD_SETSIZE problem
in winbindd to boot !). Adds a "last_access" field to winbindd connections,
and will close the oldest idle connection once the number of open connections
goes over WINBINDD_MAX_SIMULTANEOUS_CLIENTS (defined in local.h as 200
currently).
Jeremy.
(This used to be commit 7a586552a3)
2003-02-28 00:25:55 +00:00
Gerald Carter
19995a40c1 don't forget the NULL
(This used to be commit 4aa611958e)
2003-02-27 23:54:58 +00:00
Gerald Carter
e4c8e7ad8a and the winner of "i should have just written it in assembly
is..."

don't use pstrcpy() when you are not dealing with pstrings.
(This used to be commit e1b21381f3)
2003-02-27 23:21:37 +00:00
Gerald Carter
1738f7c2b7 don't pass NULL pointers to strcmp()
(This used to be commit 9b0a49a0bc)
2003-02-27 21:37:30 +00:00
Gerald Carter
0d30cdf66c additional fix for CR 601
* distinguish WinXP from Win2k
  * add a 1/3 of a second delay in OpenPrinter
    in order to trigger a LAN/WAN optimization in
    2k clients.
(This used to be commit c7712fa054)
2003-02-27 21:22:36 +00:00
Martin Pool
ff5d95f0ef Doxygen merge from head
(This used to be commit 38fa289896)
2003-02-27 05:57:21 +00:00
Martin Pool
03ae31248e Merge 1.100 patch from HEAD:
init_valid_table: Fix a memory leak that would lose the
dynamically-created valid table every time the configuration was
reloaded.
(This used to be commit 3ff4845bc4)
2003-02-27 05:20:23 +00:00
Jeremy Allison
fb3e4b8797 Fix to allow blocking lock notification to be done rapidly (no wait
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb
(does not interfere with existing locks).
Jeremy.
(This used to be commit 766928bbba)
2003-02-27 01:04:34 +00:00
Andrew Bartlett
1502667e92 Merge adding -Wwrite-strings to our CFLAGS when --enable-developer is set
(This used to be commit 1cba3ceae1)
2003-02-26 12:37:04 +00:00
Tim Potter
3330b61006 Link wbinfo with popt_common.o
(This used to be commit eac4b7ef29)
2003-02-26 00:10:22 +00:00
Tim Potter
681c932a75 Merge of exit path cleanup for EnumDomainUsers.
(This used to be commit c2e9673328)
2003-02-26 00:06:59 +00:00
Tim Potter
2057d3c39f Merge of python prototype header removal.
(This used to be commit 19676de275)
2003-02-26 00:02:07 +00:00