1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

1759 Commits

Author SHA1 Message Date
Andrew Tridgell
91a3ccd3e7 - the 36^6 hash space gives 31 bits, not 32 bits. We need to mask the
hash to suit
- the prefix ends at the last dot, not the first
-
Andrew Tridgell
582f753eac a few debug statements (disabled) -
Andrew Tridgell
ecdddd674f don't treat '.' as FLAG_ASCII, instead handle it separately -
Andrew Tridgell
128bec2071 - tidier flag checking code
- finished the is_mangled() function
-
Andrew Tridgell
8d6f2e2399 added some more comments -
Andrew Tridgell
30b35d0c1f some optimisations to the new mangling system -
Andrew Tridgell
bb173c1a7e this adds a completely new hash based mangling scheme
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.
-
Andrew Tridgell
be23d87a17 This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
-
Jeremy Allison
16015c07ea Added Shirish's client side caching policy change.
Jeremy.
-
Jeremy Allison
cda9fccd62 Shirish pointed out more areas we should be doing roundups for allocation size.
Jeremy.
-
Simo Sorce
aff7073dab a fix yet committed to 2.2 sometimes ago and reintroduced here! -
Andrew Bartlett
ad8aa47057 Reintroduce the 2.2 name mangling code, until we get are more flexible solution.
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
-
Jeremy Allison
2475c09b35 Fixed the error bad path for recursive mkdir so mkdir \a\b\c\d works.
Forward ported some of the code tidyups from 2.2.
Jeremy.
-
Jean-François Micouleau
51a5bbfee7 added shutdown to smbd
J.F.
-
Jeremy Allison
14e2beca9b Ensure that setting file length can return disk full on failure.
Jeremy.
-
Jeremy Allison
ac1baba35d Removed HAVE_LIBDL from most places (except system.c). Added checks for
dlopen & friends into configure.in. This should help building on *BSD
where dl*** calls are in libc.
Jeremy
-
Jeremy Allison
4eb29ac559 Removed unused variable.
Jeremy.
-
Jeremy Allison
6819e81da4 Matched W2K *insane* open semantics....
Jeremy.
-
Andrew Bartlett
d97771aa80 Correctly store the hostname of the remote machine if so configured. If the
reverse DNS fails, then store the IP.
-
Jeremy Allison
3b1b8ac435 Fix the mp3 rename bug - also tidy up our open code and remove the special
cases for rename and unlink. Had to add desired_access into the share mode record.
Jeremy.
-
Jeremy Allison
d0b58f66ed Fix stupid typo !
Jeremy.
-
Herb Lewis
d4d9361eec return . and .. first in readdir - this fixes masktest on IRIX which
returns . then single letter files then .. then all other files.
-
Jeremy Allison
bc8d4b9880 HEAD only fix for truncate from Alexander Bokovoy <a.bokovoy@sam-solutions.net>.
This code needs replacing with the trans2.c from 2.2.x.
Jeremy.
-
Jeremy Allison
00cabb2346 Ensure we get a real fd when opening for set file allocation.
Jeremy.
-
Jeremy Allison
504e5ef049 Remove the "stat open" code - make it inline. This should fix the
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.
-
Jeremy Allison
ad1e858d8e Sync up vfs changes from 2.2.x.
Jeremy.
-
Tim Potter
1f007d3ed4 Renamed get_nt_error_msg() to nt_errstr(). -
Gerald Carter
5760315c1d syncing up printing code with SAMBA_2_2 (already done some merges
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
-
Andrew Bartlett
9c8de8c6cf Actually include some *information* in the mangle debug messages.
In particular this shows the filename, prefix and counters involved.

The unicode -> unix converion only occours for the error case.

Andrew Bartlett
-
Jeremy Allison
cad82926a8 Now we have reliable signals take SIGTERM inband.
Jeremy.
-
Jeremy Allison
f032c6f710 Get the current directory after becoming root.
Jeremy.
-
Tim Potter
6a053fa770 Fixed bodgy printf arguments in debug statment.
Who would have guessed it - we now use floating point maths in Samba.
-
Jeremy Allison
8aa9860ea2 include/smb_macros.h: Don't round up an allocation if the size is zero.
"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.
-
Andrew Tridgell
1a8f3ba3ab if we know that the SID is local then don't try via winbindd -
Andrew Tridgell
df9e345366 fixed mapping of SIDs for local users -
Jim McDonough
96e4282dca Missing comma from systems that have ACLs. -
Jeremy Allison
7d59445b69 Added POSIX ACL layer into the vfs.
Jeremy.
-
Jeremy Allison
d85133e269 Implemented default ACL patch (set inherit acls = true on a per share basis).
Based on code donated by Olaf Frczyk <olaf@cbk.poznan.pl>. Further commit
will change to sending via vfs interface.
Jeremy.
-
Andrew Tridgell
72cb43b912 make sure we give an error for unknown lockingX locktype bits -
Andrew Tridgell
ec71c1a66f failed timed locks always give LOCK_CONFLICT not LOCK_NOT_GRANTED -
Andrew Tridgell
c55737fb25 a more informitive debug message when a SID can't be validated -
Andrew Tridgell
91fc5b2de5 get the right return code for batch vs exclusive oplocks -
Jeremy Allison
25dd73be29 Fixed delete on close semantics - preparing for share mode rewrite.
Jeremy.
-
Jeremy Allison
b56df25d48 Reformat preparing for changes to come...
Jeremy.
-
Jeremy Allison
439839be99 Added Herb's fix to override log level from command line.
Jeremy.
-
Jeremy Allison
d9cb1bf20a Mask off the aDIR on setfileinfo.
Jeremy.
-
Tim Potter
7bb0dda8ee Fixed compiler warning about unused variables. -
Jeremy Allison
4aaa4f52b8 Canonicalise pathnames returned to Windows directory separators.
Found by Andrew at connectathon with some new tests
Jeremy.
-
Jeremy Allison
ebef2e7bc8 Fix lseek-on-pipe problem in VFS (where it belongs IMHO).
Jeremy.
-
Andrew Bartlett
3bf4b42771 Various comment fixes from Rafal Szczesniak <mimir@diament.ists.pwr.wroc.pl> -