Jeremy Allison
53e97bf928
r18793: Fix BE string handling in the auto-generated
...
code. Should now work again with ASU.
Jeremy.
2007-10-10 12:00:58 -05:00
Jeremy Allison
9dafb7f48c
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
2007-10-10 11:19:14 -05:00
Volker Lendecke
0a2f1ed5e9
r15103: Okay, looking closer: Samba4 tdb not exporting u32 is a bug in samba4's
...
tdb. tdb_open_ex needs it. Can someone from samba4 tell me how this should be
handled?
Thanks,
Volker
2007-10-10 11:16:23 -05:00
Volker Lendecke
0a1665a1b7
r15102: u32 is a tdb-only thing that's not exported by samba4 tdb. Replace by uint32.
...
Volker
2007-10-10 11:16:23 -05:00
Jeremy Allison
c2752347eb
r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
...
and replace calls to isupper/islower/toupper/tolower with
ASCII equivalents (mapping into _w variants).
Jeremy.
2007-10-10 11:05:58 -05:00
Gerald Carter
939c3cb5d7
r10656: BIG merge from trunk. Features not copied over
...
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
2007-10-10 11:04:48 -05:00
Jeremy Allison
105e38847d
r10600: Fix bug #2769 (mangle filenames ending in a space)
...
and an old bug where mangle mathod hash wasn't mangling
file names with more than one dot which also end in a dot.
Jeremy.
2007-10-10 11:04:47 -05:00
Jeremy Allison
e9b8d23d61
r7842: With the patch I sent Steve yesterday this gives us complete POSIX pathnames.
...
ie. files containing : and \ can be accessed from Linux.
Jeremy.
2007-10-10 10:57:59 -05:00
Jeremy Allison
0ca2423c70
r6977: Fix bug #2735 (not mangling control characters) plus
...
ensure we don't create files with control characters
either.
Jeremy.
2007-10-10 10:56:59 -05:00
Jeremy Allison
b1bfa9cb37
r6625: Remove another global variable left over from a long time ago (magic char).
...
Jeremy.
2007-10-10 10:56:47 -05:00
Jeremy Allison
620f2e608f
r4088: Get medieval on our ass about malloc.... :-). Take control of all our allocation
...
functions so we can funnel through some well known functions. Should help greatly with
malloc checking.
HEAD patch to follow.
Jeremy.
2007-10-10 10:53:32 -05:00
Jeremy Allison
cc91bbe20d
r2082: lp_path should be lp_pathname.
...
Paranoia fix on mangle prefix.
Jeremy.
2007-10-10 10:52:30 -05:00
Gerald Carter
430cf63b91
r1570: merging changes from 3.0.5
2007-10-10 10:52:15 -05:00
Jeremy Allison
578a508509
r570: Remove lots of globals to handle case issues - move them
...
to connection struct entries (as they should have been from
the start). Jerry, once you've cut over to 3.0.4 release
branch I'll add this to 3.0 also.
- Jerry cut over :-).
Jeremy.
2007-10-10 10:51:30 -05:00
Jeremy Allison
7b96765c23
Restore the contract on all convert_stringXX() interfaces. Add a "allow_bad_conv"
...
boolean parameter that allows broken iconv conversions to work. Gets rid of the
nasty errno checks in mangle_hash2 and check_path_syntax and allows correct
return code checking.
Jeremy.
-
Jeremy Allison
fc2af591f5
Ensure we mangle names ending in '.' in hash2 mangling method.
...
Jeremy.
-
Jeremy Allison
d7e35dfb92
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.
-
Jeremy Allison
6e6769c206
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.
-
Jeremy Allison
d512650340
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
-
Jeremy Allison
a238bcc440
Check for embedded mb chars when testing for illegal characters like /.
...
Should fix mangling for Japanese language.
Jeremy.
-
Jeremy Allison
bd40da0635
Fix initial debug.
...
Jeremy.
-
Jeremy Allison
fda2541697
Remove completely unneeded malloc/free out of this codepath.
...
Jeremy.
-
Andrew Bartlett
10b53d7c6f
Merge from HEAD:
...
- Make ReadDirName return a const char*.
- Consequential changes from that
- mark our fstring/pstring assumptions in function prototypes
Andrew Bartlett
-
Andrew Bartlett
9ef0d40c3f
Merge doxygen, signed/unsigned, const and other small fixes from HEAD to 3.0.
...
Andrew Bartlett
-
Jeremy Allison
83261f4332
Merge mangle prefix code.
...
Jeremy.
-
Jeremy Allison
0644f6a68e
Merge Anton's 64-bit fix.
...
Jeremy.
-
Gerald Carter
65e7b5273b
sync'ing up for 3.0alpha20 release
-
Jelmer Vernooij
42615b945e
Sync 3.0 branch with head
-
Andrew Tridgell
03ac082dcb
updated the 3.0 branch from the head branch - ready for alpha18
-
Andrew Tridgell
97eb3a121d
merged the mangling test and passdb bugfixes into SAMBA_3_0
-
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.
-