summaryrefslogtreecommitdiff
path: root/source3/smbd
AgeCommit message (Collapse)AuthorFilesLines
2002-04-12- added a mangling test suite that measures the collision rate onAndrew Tridgell1-0/+14
randomised filenames - fixed several mangling bugs that the test suite pointed out (This used to be commit 858fa7efc34f6e7cdf8500900aed3f7943c91348)
2002-04-11Much better support for both non-algorithic RIDs (where the RID is stored inAndrew Bartlett1-5/+15
the passdb) and RIDs not in the passdb, due to being NIS users etc. The main fix here is to add become_root()/unbecome_root() at critical places. This (finally) fixes the bug where you could not see local users's names in a file's security properties as non-root. Tested. The similar bug in uid_to_sid is also fixed, but is not (yet) Tested. Andrew Bartlett (This used to be commit 79327a305e20d78ab5ca21d01c39b5f49dc0d632)
2002-04-11don't try to return a voidAndrew Tridgell1-1/+1
(This used to be commit 51b4de0ae3b05c4f34a645ae9c6e395bc37226e6)
2002-04-11- the 36^6 hash space gives 31 bits, not 32 bits. We need to mask theAndrew Tridgell1-2/+4
hash to suit - the prefix ends at the last dot, not the first (This used to be commit 91a3ccd3e790f980421c1ee93388e19e87026b29)
2002-04-11a few debug statements (disabled)Andrew Tridgell1-2/+7
(This used to be commit 582f753eac7a111a93a8d6c049398a0998af848f)
2002-04-11don't treat '.' as FLAG_ASCII, instead handle it separatelyAndrew Tridgell1-2/+2
(This used to be commit ecdddd674f2ffad16eaa01a68c9c91ff3b355b3f)
2002-04-11- tidier flag checking codeAndrew Tridgell1-8/+40
- finished the is_mangled() function (This used to be commit 128bec2071d640c775b58322256ac6bb03363741)
2002-04-11added some more commentsAndrew Tridgell1-5/+15
(This used to be commit 8d6f2e239940cbac44f6f0e9d584a47553acbc56)
2002-04-11some optimisations to the new mangling systemAndrew Tridgell1-16/+44
(This used to be commit 30b35d0c1f41f72ebe230905f76db8807802a6cc)
2002-04-11this adds a completely new hash based mangling schemeAndrew Tridgell2-0/+511
the hash for this scheme is *much* larger (approximately 31 bits) and the code is written to be very fast, correctly handling multibyte while not doing any actual multi-byte conversions in the vast majority of cases you can select this scheme using "mangling method = hash2", although I may make it the default if it works out well. (This used to be commit bb173c1a7e2408ced967ebac40b5e3f852ccd3a1)
2002-04-11This split the mangling code up to allow for the possibility of multipleAndrew Tridgell9-996/+1090
mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty. (This used to be commit be23d87a178e7d0691e7d942adf89bb3d2d533c2)
2002-04-10Added Shirish's client side caching policy change.Jeremy Allison1-1/+2
Jeremy. (This used to be commit 16015c07eab2e57fa3771051e3e08fde21757cfa)
2002-04-09Shirish pointed out more areas we should be doing roundups for allocation size.Jeremy Allison1-17/+16
Jeremy. (This used to be commit cda9fccd629d084039af642d9177865d88553be6)
2002-04-08a fix yet committed to 2.2 sometimes ago and reintroduced here!Simo Sorce1-1/+1
(This used to be commit aff7073dabb6253fea4729f52240a25f90206699)
2002-04-08Reintroduce the 2.2 name mangling code, until we get are more flexible solution.Andrew Bartlett4-830/+805
Even for a hash/cache setup, this code needs some more work, in particular it needs to use mangle_get_prefix() etc and to move to unicode internals. Andrew Bartlett (This used to be commit ad8aa470575c39fcbc7f1440bf1081d7ea31c0aa)
2002-04-02Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.Jeremy Allison3-71/+33
Forward ported some of the code tidyups from 2.2. Jeremy. (This used to be commit 2475c09b354cc7b5f4ce384e4497207d30f619bb)
2002-03-29added shutdown to smbdJean-François Micouleau1-0/+6
J.F. (This used to be commit 51a5bbfee71e064c73283a090e9e922a31b1e21b)
2002-03-28Ensure that setting file length can return disk full on failure.Jeremy Allison1-2/+7
Jeremy. (This used to be commit 14e2beca9b8fa1c8d893013f52f42b2721a82758)
2002-03-27Removed HAVE_LIBDL from most places (except system.c). Added checks forJeremy Allison2-230/+194
dlopen & friends into configure.in. This should help building on *BSD where dl*** calls are in libc. Jeremy (This used to be commit ac1baba35d7a399bf800ced49a4384e39955e3eb)
2002-03-26Removed unused variable.Jeremy Allison1-3/+0
Jeremy. (This used to be commit 4eb29ac559faf29b348a4097a33f9cbf4cf9d057)
2002-03-26Matched W2K *insane* open semantics....Jeremy Allison1-0/+18
Jeremy. (This used to be commit 6819e81da490914d2db91c4d2419d408b8d4c818)
2002-03-23Correctly store the hostname of the remote machine if so configured. If theAndrew Bartlett1-4/+6
reverse DNS fails, then store the IP. (This used to be commit d97771aa80b48fbdb9cae3e9712e35fcc895b148)
2002-03-23Fix the mp3 rename bug - also tidy up our open code and remove the specialJeremy Allison5-195/+232
cases for rename and unlink. Had to add desired_access into the share mode record. Jeremy. (This used to be commit 3b1b8ac43535fb0839c5474fa55bf7150f6cde31)
2002-03-21Fix stupid typo !Jeremy Allison1-2/+2
Jeremy. (This used to be commit d0b58f66edeac516bde2dff79ab5cf529c37954b)
2002-03-21return . and .. first in readdir - this fixes masktest on IRIX whichHerb Lewis1-1/+13
returns . then single letter files then .. then all other files. (This used to be commit d4d9361eec11f50c780ed4c79bc9775ac24d8c0e)
2002-03-20HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.Jeremy Allison1-1/+1
This code needs replacing with the trans2.c from 2.2.x. Jeremy. (This used to be commit bc8d4b98807ece734db3e1c3a2baabf4b28e7b4f)
2002-03-20Ensure we get a real fd when opening for set file allocation.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 00cabb2346fb11c5568b6c7a038c313ae293a0c2)
2002-03-20Remove the "stat open" code - make it inline. This should fix theJeremy Allison8-254/+140
bugs with opening and renaming mp3 files, also the word rename problems that people have had for a while. Needs a make clean :-) make. Also added JohnR's printing fix. Jeremy. (This used to be commit 504e5ef0494c54efbd0357e334cb2aa5a9eb9c14)
2002-03-19Sync up vfs changes from 2.2.x.Jeremy Allison3-181/+39
Jeremy. (This used to be commit ad1e858d8e72adf924ff435eab8da3e60842e2e6)
2002-03-17Renamed get_nt_error_msg() to nt_errstr().Tim Potter4-6/+6
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-15syncing up printing code with SAMBA_2_2 (already done some mergesGerald Carter2-5/+5
in the reverse). * add in new printer change notify code from SAMBA_2_2 * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex() * sync up the _print_queue_struct in smb.h (why did someone change the user/file names in fs_user/fs_file (or vice-versa) ? ) * sync up some cli_spoolss_XXX functions (This used to be commit 5760315c1de4033fdc22684c940f18010010924f)
2002-03-14Actually include some *information* in the mangle debug messages.Andrew Bartlett1-14/+39
In particular this shows the filename, prefix and counters involved. The unicode -> unix converion only occours for the error case. Andrew Bartlett (This used to be commit 9c8de8c6cf44ead0719efa48a34c9c9d54402ac6)
2002-03-14Now we have reliable signals take SIGTERM inband.Jeremy Allison2-45/+58
Jeremy. (This used to be commit cad82926a8baf7605cef81f0e0d4daa8e527e6ee)
2002-03-14Get the current directory after becoming root.Jeremy Allison1-1/+1
Jeremy. (This used to be commit f032c6f710cb0edcf02f25db81c83478b9a8ab1e)
2002-03-13Fixed bodgy printf arguments in debug statment.Tim Potter1-1/+1
Who would have guessed it - we now use floating point maths in Samba. (This used to be commit 6a053fa770b69f21fef52966a0b577b7ac9e817e)
2002-03-13include/smb_macros.h: Don't round up an allocation if the size is zero.Jeremy Allison2-8/+10
"One of these locks is not like the others... One of these locks is not quite the same" :-). When is a zero timeout lock not zero ? When it's being processed by Windows 2000 of course.. This code change, ugly though it is - completely fixes the foxpro/access multi-user file system database problems that people have been having. I used a *wonderful* test program donated by "Gerald Drouillard" <gerald@drouillard.ca> which allowed me to completely reproduce this problem, and to finally determine the correct fix. This also explains why Windows 2000 is *so slow* when responding to the smbtorture lock tests. I *love* it when all these things come together and finally make sense :-). Jeremy. (This used to be commit 8aa9860ea2ea7f5aed4b6aa12794fffdfa81b0d0)
2002-03-13if we know that the SID is local then don't try via winbinddAndrew Tridgell1-0/+5
(This used to be commit 1a8f3ba3ab7717c481e3fb4f1ea8938461160d09)
2002-03-13fixed mapping of SIDs for local usersAndrew Tridgell1-1/+1
(This used to be commit df9e345366078ccaa94df7c2f2e33b292605e88a)
2002-03-12Missing comma from systems that have ACLs.Jim McDonough1-1/+1
(This used to be commit 96e4282dca757e8621d23a54fb7203c93d2d41fc)
2002-03-12Added POSIX ACL layer into the vfs.Jeremy Allison4-65/+202
Jeremy. (This used to be commit 7d59445b6962547a8938928a9371651a09e26516)
2002-03-11Implemented default ACL patch (set inherit acls = true on a per share basis).Jeremy Allison3-9/+36
Based on code donated by Olaf Frączyk <olaf@cbk.poznan.pl>. Further commit will change to sending via vfs interface. Jeremy. (This used to be commit d85133e2697eb22f1573c78447b57791ae63dd6b)
2002-03-11make sure we give an error for unknown lockingX locktype bitsAndrew Tridgell1-0/+7
(This used to be commit 72cb43b912a4c1831f9d7b2fd23ce51aebb09c8f)
2002-03-10failed timed locks always give LOCK_CONFLICT not LOCK_NOT_GRANTEDAndrew Tridgell1-0/+6
(This used to be commit ec71c1a66f9fd4b9cb4cad5a9b5b17e20de7aeb1)
2002-03-09a more informitive debug message when a SID can't be validatedAndrew Tridgell1-1/+2
(This used to be commit c55737fb25dfed4697b93a600e3bd770f84bf464)
2002-03-07get the right return code for batch vs exclusive oplocksAndrew Tridgell1-5/+12
(This used to be commit 91fc5b2de577019d7646f3c29173b27605d9ba12)
2002-03-07Fixed delete on close semantics - preparing for share mode rewrite.Jeremy Allison2-13/+14
Jeremy. (This used to be commit 25dd73be29bbf0a080fe0bcbe5c478545d1e8db7)
2002-03-06Reformat preparing for changes to come...Jeremy Allison1-155/+155
Jeremy. (This used to be commit b56df25d48a7adaa49b0bd44f8ff7be81b970da2)
2002-03-05Added Herb's fix to override log level from command line.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 439839be99e6e418eb5782a2fe0630d0ef5fb3c5)
2002-03-05Mask off the aDIR on setfileinfo.Jeremy Allison3-0/+10
Jeremy. (This used to be commit d9cb1bf20ac8a739102b03d9a70e34fe5cb2f0f7)
2002-03-05Fixed compiler warning about unused variables.Tim Potter1-5/+5
(This used to be commit 7bb0dda8ee1d61a0e8448070f1a71fcd13be5d40)