summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2003-03-07Patch from Michael Steffens. In his own words :Jeremy Allison3-82/+203
------------------------------------------------------------------------- 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 1d3b8c528bebfa1971d1affe454a03453335786e)
2003-03-07Fix noticed by Corny.Bondad@hp.com. Ensure we free up memory on error exit.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 05a8a61af83a6d85ddbb70749c8cd0abe9eb8180)
2003-03-07Found at Connectathon, .NET RC1 arranges trans/trans2/nttrans parametersJeremy Allison3-69/+227
differently to W2K, cope with this. Jeremy. (This used to be commit 5e2755508f08ecf561348d4edf0a4064732c5213)
2003-03-06add #define for the max device name length in a DEVICEMODEGerald Carter3-2/+4
(This used to be commit 52ef84b53495db1eac6ecfb0b926ef8df7ea5cc5)
2003-03-05More const fixes.Jeremy Allison2-3/+3
Jeremy. (This used to be commit fa93763248f2043395e4cfc70b8afd81e28b2b75)
2003-03-05Writable string const fixes.Jeremy Allison2-7/+13
Jeremy. (This used to be commit c832e95c2f4daf175954a60f3c56420cf2f35b45)
2003-03-05Fix for little-used lpq parser.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 75b36459ab1797bdff98ed91d7870bd48adebb54)
2003-03-05Connectathon fix. W2K -> W2K over port 445 doing a tconX does the fullJeremy Allison1-7/+2
\\server\share syntax, not just a "share" tconX syntax. This broke interop with a vendor. Jeremy. (This used to be commit 3cc2ace7718ac1162494b81fa21d4cc9de021d1c)
2003-03-04preparing for release of 3.0alpha22Gerald Carter1-1/+1
(This used to be commit f5c9895f83277f01282587697c84d31dc77102f6)
2003-03-03More janitorial duties, fixing the BIG_UINT changes for large offsets.Richard Sharpe2-6/+7
(This used to be commit 1af39523cc3b2313f3e8acd4f2e5338182ec0b13)
2003-03-03Const warning fixes.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 30e8ae8e030b5dccaef9612dca24907be547acdf)
2003-03-03Fix const warning.Jeremy Allison1-1/+1
Jeremy. (This used to be commit dedc18212a5174b6abac60ede9828f9b726a6c2d)
2003-03-03dlysym takes a const char *.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 54e5413a9267b7279cbde0ec129478a5a9c3116c)
2003-03-03* always report ourselves as a Windows 2000 print server (evenGerald Carter1-8/+29
without ADS support) * add "MinorVersion" print server data key and comment on "OSVersion" (This used to be commit e1383368169faa50b9e612c9f71f92f790698b48)
2003-03-03* CR1868: only send a change notify message if we have somethingGerald Carter2-4/+16
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 e8939165b77c9e2ea8b3cef2e85885b9812c7184)
2003-03-01Added limit to number of jobs enumerated. Set to 0 (means no limit).Jeremy Allison2-0/+10
Yes I will add the docs.... Jeremy. (This used to be commit e1b0001c8df9e9823b42a372ca675188570b252a)
2003-03-01Ensure added jobs increment total_jobs.Jeremy Allison1-0/+6
Jeremy. (This used to be commit a75d9fc4e1c26e3ae15a97508f6f1cf69fe54148)
2003-02-28Fix HTTP error codes (patch by Vance Lankhaar)Jelmer Vernooij1-3/+3
(This used to be commit e660b0b8d034c6cb9771601c64b952380d136ca1)
2003-02-28Remove reference to "mainpage.dox" and CodingStandards, which haveMartin Pool1-4/+3
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 732d94b83e2dd14bad92c2f7947cf905b9128a2f)
2003-02-28Move net ads lookup improvements over from HEADJim McDonough1-61/+142
(This used to be commit 507e5738fb7c50969bee269527be5dc6e450b77f)
2003-02-28*Excellent* patch from Michael Steffens <michael_steffens@hp.com> to limitJeremy Allison3-15/+61
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 7a586552a3aeb4a26495f0965af4bd027456a011)
2003-02-27 don't forget the NULLGerald Carter1-3/+3
(This used to be commit 4aa611958ebedfafbb9bfc1070b7d632272e1aaf)
2003-02-27and the winner of "i should have just written it in assemblyGerald Carter1-3/+3
is..." don't use pstrcpy() when you are not dealing with pstrings. (This used to be commit e1b21381f3b5cf6f97c101642e9286df9987998e)
2003-02-27don't pass NULL pointers to strcmp()Gerald Carter1-2/+2
(This used to be commit 9b0a49a0bc177f9637f197b3ab4613f25db1b43d)
2003-02-27additional fix for CR 601Gerald Carter4-1/+25
* 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 c7712fa054d21b4884a78b7ea6c0fb8b3d637c6b)
2003-02-27Doxygen merge from headMartin Pool1-5/+6
(This used to be commit 38fa2898967f607a17fd7fbd324f2940a05fb551)
2003-02-27Merge 1.100 patch from HEAD:Martin Pool1-8/+15
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 3ff4845bc43736bfa091419c80b9a0ebdc9d156e)
2003-02-27Fix to allow blocking lock notification to be done rapidly (no waitJeremy Allison7-19/+162
for smb -> smb lock release). Adds new PENDING_LOCK type to lockdb (does not interfere with existing locks). Jeremy. (This used to be commit 766928bbba1e597c9c2b12458dd8d37e6080593e)
2003-02-26Merge adding -Wwrite-strings to our CFLAGS when --enable-developer is setAndrew Bartlett1-2/+2
(This used to be commit 1cba3ceae1637974272e595260933985d84942d4)
2003-02-26Link wbinfo with popt_common.oTim Potter1-1/+2
(This used to be commit eac4b7ef2989acb50e3d27e7198285dd198017ec)
2003-02-26Merge of exit path cleanup for EnumDomainUsers.Tim Potter1-41/+23
(This used to be commit c2e9673328b2d989f13626632442f095727a03c6)
2003-02-26Merge of python prototype header removal.Tim Potter1-29/+0
(This used to be commit 19676de275f1cb1feaf4f65acfafc1aed3b6ec67)
2003-02-25Merge: newline on debug message.Tim Potter1-1/+1
(This used to be commit df49463e62e4be7535485b668f00db287ff581f3)
2003-02-25Merge: add popt_common_version to command line options table.Tim Potter4-0/+4
(This used to be commit 8de62f7896a53084e87b95c013d8693214c8ab85)
2003-02-25Merge: const fixes.Tim Potter1-110/+87
Merge: add popt_common_version to command line options table. Merge: mbp's rewrite of do_cmd() (This used to be commit 20f153cee38edfa93ffd60cc872a299a4f296240)
2003-02-25Merge: const fixes.Tim Potter1-1/+2
Merge: add popt_common_version to command line options table. (This used to be commit 5f8a008a52b115ed423464faa264f1b7ab86a1e2)
2003-02-25Merge: const fixes.Tim Potter16-119/+136
(This used to be commit a20aba09996e470425a151271237f2d48a8302af)
2003-02-25Merge: fix compiler warning.Tim Potter1-0/+7
(This used to be commit 55ee43cfb8b3ffb99c50d987f07a96fe79a0fe92)
2003-02-25Progress on CR 601Gerald Carter6-315/+388
cache the printer_info_2 with the open printer handle. cache is invalidated on a mod_a_printer() call **on that smbd**. Yes, this means that the window for admins to step on each other from different clients just got larger, but since handles a generally short lived this is probably ok. (This used to be commit 31272d3b6bb9ec62fd666301c7adfa0c1720a99b)
2003-02-24Merge from HEAD. Use pstrcpy not safe_strcpy.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 9634b1fba059228d436198629a5c7cf01fb6736c)
2003-02-24Merge from head. Move off-by-one buggy malloc()/safe_strcpy() combination to ↵Jeremy Allison1-3/+1
strdup() instead. Jeremy. (This used to be commit 6521601bf8013c8809db13ccf7dd256ea4ad5dd7)
2003-02-24Merge documentation from HEADMartin Pool1-6/+13
(This used to be commit 3761f8ebe339fbbeffee9d7b69f9483ebfd9ae6b)
2003-02-24Make sure these values are never uninitialsised.Andrew Bartlett1-2/+2
(This used to be commit eacb8dde7afa16d86586c6c896ffb6692dc53bf6)
2003-02-24Cleint-side-auth/kerberos fixes from HEAD, and don't connect to a shareAndrew Bartlett3-25/+67
twice, let the libsmb code determine what form the share name should take. Andrew Bartlett (This used to be commit a25f6126647c94551c03bfc28e3fb5ec5ef6264a)
2003-02-24Iconv as seperate library fixes from HEADAndrew Bartlett1-0/+5
(This used to be commit 935c66f6a02c7ba764fbcc643a91833deb588bc0)
2003-02-24Signed/unsigned fix from HEADAndrew Bartlett1-2/+2
(This used to be commit 723ce5c531a957f3ea67f6fe74d4263a35083dda)
2003-02-24Merge crypt(), ACL lib and shared lib changes from HEAD.Andrew Bartlett3-57/+252
(This used to be commit e380224d8cd265b9845ad80af2b053a56078e790)
2003-02-24Merge paramaters for client-side-auth updates.Andrew Bartlett1-0/+11
(This used to be commit 68d34711279aa5959778974018df77726b915858)
2003-02-24Fix a small stuffup in the HEAD -> 3.0 mergeAndrew Bartlett1-1/+0
(This used to be commit cccec78cf241a9f69c363f0ecdd2e934c8b21f19)
2003-02-24Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.Andrew Bartlett13-247/+284
Andrew Bartlett (This used to be commit 9ef0d40c3f8aef52ab321dc065264c42065bc876)