1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

254 Commits

Author SHA1 Message Date
Alexander Bokovoy
9acd46ab46 Fix build after Jeremy -- yet another place where convert_string() wasn't updated -
Andrew Bartlett
a893a324f3 Given how core this code is, I figure it should have it's own testsuite.
Big thanks to tpot and mbp for showing how easy it can be to write a simple
unit test, and for providing the STF.

This also changes the strstr_m() code to use strstr_w() (avoiding
duplication) and fixes it so that it passes the STF.

(We now always restart before doing the unicode run, until sombody can
show me why the testsuite is wrong).

Andrew Bartlett
-
Jeremy Allison
5646b6c989 Merging Richard's rename test.
Jeremy.
-
Jim McDonough
4319df7fdc Janitor for tpot...bugzilla #1098, msleep already exists on aix -
Jeremy Allison
0ea0ada6c6 Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
-
Jeremy Allison
5c6f8b1053 Make us bug-for-bug compatible with W2K3 - to get delete on close semantics
on an initial open the desired_access field *must* contain DELETE_ACCESS,
simply having it map from a GENERIC_ALL won't do. Fixes delete on close test.
Jeremy.
-
Volker Lendecke
3663ed2b96 Fix Bug # 924
Volker
-
Richard Sharpe
34351e457a A small fix to torture.c to cleanup the error handling and prevent crashes.
I really should clean up the comment as well.
-
Volker Lendecke
a13e088493 Two trivial warnings
Volker
-
Tim Potter
0519a7022b Final round of printf warnings fixes for the moment. -
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.
-
Tim Potter
18adfdbe0c Enclose usage of st_blksize and st_blocks struct stat members in
#ifdef HAVE_STAT_ST_BLKSIZE and #ifdef HAVE_STAT_ST_BLOCKS,
respectively.

Fixes bug 550 reported by Joachim Schmitz <schmitz@hp.com>.
-
Alexander Bokovoy
e8a5a962ed Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV -
Alexander Bokovoy
e855dc8c91 Fix for #150.
We now fallback to Samba-provided CP850 charset module if CP850 or IBM850 does not exist on target system at runtime.
1. Introduce CP850 charset module based on charmaps table from GNU libc 2.2.5
2. Make CP850 charset module shared and build it by default

Should fix Solaris run-time
-
Gerald Carter
ae452e51b0 metze's autogenerate patch for version.h -
Jeremy Allison
6f68b8de47 Fix for bugid #205 - work by Andrew Bartlet (modified to use
fixed buffer by me).
Jeremy.
-
Jeremy Allison
879309671d Add a command line option (-S on|off|required) to enable signing on client
connections. Overrides smb.conf parameter if set.
Jeremy.
-
Gerald Carter
9f835b85dd convert snprintf() calls using pstrings & fstrings
to pstr_sprintf() and fstr_sprintf() to try to standardize.
lots of snprintf() calls were using len-1; some were using
len.  At least this helps to be consistent.
-
Tim Potter
f93528ba00 Fixup a bunch of printf-style functions and debugs to use unsigned long when
displaying pid_t, uid_t and gid_t values.  This removes a whole lot of warnings
on some of the 64-bit build farm machines as well as help us out when 64-bit
uid/gid/pid values come along.
-
Gerald Carter
66359531b8 i guess i'm the only one this ever annyoed...
fix the confusion when we tdb_lock_bystring() but
we retrieve an entry using tdb_fetch_by_string.
It's now always tdb.*bystring()
-
Jeremy Allison
4f78d747e6 More conversions I missed. Thanks metze.
Jeremy.
-
Jeremy Allison
da5ee2b765 Fixed strlower changes I missed. Pointed out by metze.
Jeremy
-
Jelmer Vernooij
13b81d0d92 Move up intialisation of logging, so we catch errors in handling 'preload modules' -
Tim Potter
a7e67aaffe Back out some of the changes to nsstest. I've kept the NULL pointer
dereference bugfixes but left out the gethostbyname (wins) tests pending
a nicer way to integrate it.
-
Tim Potter
66bafbe371 Update nsstest to cope with wins NSS module as well as winbind NSS
module.  Use "wins" as the nss name to invoke this behaviour.

Also, fixed nsstest so it doesn't segfault when a nss function can't
be dlopened().  Log an error and abort the test gracefully instead.
-
Andrew Tridgell
24feb1afa6 fixed smbtorture LOCK1 test to know about the correct multiplier for
timed blocking locks
-
Alexander Bokovoy
db255608f1 Fix compiler warnings for vfstest. Patch from Stefan Metzmacher <mezte@metzemix.de> -
Alexander Bokovoy
c2689ed118 Prefix VFS API macros with SMB_ for consistency and to avoid problems with VFS_ macros at system side. We currently have one clash with AIX and its VFS_LOCK. Compiled and tested -- no new functionality or code, just plain rename of macros for yet-unreleased VFS API version. Needs to be done before a24 is out -
Alexander Bokovoy
91984ef5ca Fix VFS layer:
1. Finally work with cascaded modules with private data storage per module
2. Convert VFS API to macro calls to simplify cascading
3. Add quota support to VFS layer (prepare to NT quota support)

Patch by Stefan (metze) Metzemacher, with review of Jelmer and me
Tested in past few weeks. Documentation to new VFS API for third-party developers to follow
-
Jelmer Vernooij
d817eaf0ec Reverse previous patch from Stefan and me after comments by Andrew Bartlett -
Jelmer Vernooij
74d9ecfe2d Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
-
Andrew Bartlett
0dfeaf4535 Fix use of uninitialised value in TCONDEV test - found by sun1 on the build farm -
Jelmer Vernooij
ccabb7961a Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
-
Andrew Bartlett
a93057efcb Add a check to ensure that the server returns the correct device type, not
just the correct error.

This should help us avoid breaking NT4 IPC$ connections, for example.

This has required that we don't overwrite the device type for IPC$ in our
tcon&X code, but only smbwrapper even uses it, and a server that doesn't send
a correct dev type breaks other things pretty badly.

In any case, I'll 'fix' smbwrapper :-).

Andrew Bartlett
-
Andrew Bartlett
0c83712692 Merge torture tests from HEAD - it looks like we had rather an incomplete
merge last time.  I hope this might fix a few failures on the build farm too.

Andrew Bartlett
-
Gerald Carter
7798c7ee1a fixing torture build by merging code from HEAD -
Gerald Carter
b6a7704888 merge in metze' smbcquotas patch from HEAD -
Jelmer Vernooij
89a25ef20d Fix popt usage (backport from HEAD) -
cvs2svn Import User
381649916e This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
Gerald Carter
74fab8f0d2 smbcquota patch from metze -
Jeremy Allison
bc094789b9 Added using different cnum test. WinXP and Samba now pass - Win2k fails.
Jeremy.
-
Jeremy Allison
e07dd4d93d Ensure we have WinXP-like semantics for checking TIDs and FIDs.
Add torture test to ensure this is so.
Jeremy.
-
Martin Pool
b20d8b4970 Set character set to default (UTF-8) before running tests. -
Martin Pool
92acecd28c t_push_ucs2, t_strcmp: Run tests only once by default, rather than
10000 times.  (In theory they should be pure functions....)  You can
specify a parameter to repeat them if you want to e.g. measure
performance.
-
Martin Pool
275e095c92 Integrate abartlet's t_push_ucs2 test into test framework:
- Build t_push_ucs2 as part of check-programs, the prerequisite for
   "make check".

 - t_push_ucs2.c: Load configuration from /dev/null so that we get a
   unix_charset of UTF-8 and can do meaningful UCS2 tests.  Better
   comment.

 - Add a test to strings.py which tries conversion UTF8->UCS2->UTF8
   and checks the results.  Do this for English, Latin-1, and Katakana
   strings.

 - Add Python module with symbolic names for a handful of UNICODE
   characters.
-
Andrew Bartlett
98f7632554 If the string does not convert back, print the buggy result. -
Andrew Bartlett
a60fd29b43 Fix bigballofmud.so, and add a test to show a bug I'm having with push_ucs2.
Andrew Bartlett
-
cvs2svn Import User
cbc42567be This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'. -
Martin Pool
346c763fd1 Test harness that exercises check_dos_char() -
John Terpstra
b522892215 Merge from HEAD to define variable port_to_use. Needed to compile. -