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

22 Commits

Author SHA1 Message Date
Jeremy Allison
7b39861342 Ensure we mangle names ending in '.' in hash2 mangling method.
Jeremy.
(This used to be commit fc2af591f5)
2003-11-18 01:47:27 +00:00
Jeremy Allison
bb0598faf5 Put strcasecmp/strncasecmp on the banned list (except for needed calls
in iconv.c and nsswitch/). Using them means you're not thinking about multibyte at
all and I really want to discourage that.
Jeremy.
(This used to be commit d7e35dfb92)
2003-10-22 23:38:20 +00:00
Jeremy Allison
9b8cbdfc2b Fix OOPS when dealing with mangled names reported by several users.
This was my bug when removing a redundant strlen.
Jerry - last showstopper I knew about.
Jeremy.
(This used to be commit 6e6769c206)
2003-09-15 21:19:43 +00:00
Jeremy Allison
dd50c0ed68 A *curse* upon the person who #ifdefed out the mangle debug statements
by default ! This is code that really needs to be able to be looked at
on a customer system if it's misbehaving !
Jeremy
(This used to be commit d512650340)
2003-09-15 18:53:01 +00:00
Jeremy Allison
46765d97fa Check for embedded mb chars when testing for illegal characters like /.
Should fix mangling for Japanese language.
Jeremy.
(This used to be commit a238bcc440)
2003-08-27 19:01:55 +00:00
Jeremy Allison
9511c987df Fix initial debug.
Jeremy.
(This used to be commit bd40da0635)
2003-08-27 18:21:26 +00:00
Jeremy Allison
8df07f37a2 Remove completely unneeded malloc/free out of this codepath.
Jeremy.
(This used to be commit fda2541697)
2003-08-27 18:17:33 +00:00
Andrew Bartlett
ad0d6509a7 Merge from HEAD:
- Make ReadDirName return a const char*.

 - Consequential changes from that

 - mark our fstring/pstring assumptions in function prototypes

Andrew Bartlett
(This used to be commit 10b53d7c6f)
2003-03-17 22:56:13 +00:00
Andrew Bartlett
266ec4aac0 Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.
Andrew Bartlett
(This used to be commit 9ef0d40c3f)
2003-02-24 03:09:08 +00:00
Jeremy Allison
1ef283d5c3 Merge mangle prefix code.
Jeremy.
(This used to be commit 83261f4332)
2002-10-21 20:40:23 +00:00
Jeremy Allison
b8e4a3331d Merge Anton's 64-bit fix.
Jeremy.
(This used to be commit 0644f6a68e)
2002-10-15 05:58:32 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273b)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
127e77e6e3 Sync 3.0 branch with head
(This used to be commit 42615b945e)
2002-08-17 15:27:10 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb)
2002-07-15 10:35:28 +00:00
Andrew Tridgell
4023a61892 merged the mangling test and passdb bugfixes into SAMBA_3_0
(This used to be commit 97eb3a121d)
2002-04-12 10:18:46 +00:00
Andrew Tridgell
5c0e682c4a - 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
(This used to be commit 91a3ccd3e7)
2002-04-11 14:20:18 +00:00
Andrew Tridgell
1ed0c5ea70 a few debug statements (disabled)
(This used to be commit 582f753eac)
2002-04-11 14:03:30 +00:00
Andrew Tridgell
4c889cb8b6 don't treat '.' as FLAG_ASCII, instead handle it separately
(This used to be commit ecdddd674f)
2002-04-11 13:35:28 +00:00
Andrew Tridgell
bf9cb3c5f3 - tidier flag checking code
- finished the is_mangled() function
(This used to be commit 128bec2071)
2002-04-11 12:14:55 +00:00
Andrew Tridgell
ef88357403 added some more comments
(This used to be commit 8d6f2e2399)
2002-04-11 11:46:42 +00:00
Andrew Tridgell
b1f04740ad some optimisations to the new mangling system
(This used to be commit 30b35d0c1f)
2002-04-11 10:52:59 +00:00
Andrew Tridgell
714518e550 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.
(This used to be commit bb173c1a7e)
2002-04-11 09:56:38 +00:00