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

248 Commits

Author SHA1 Message Date
Volker Lendecke
a0f8007da5 Fix Bug # 924
Volker
(This used to be commit 3663ed2b96)
2003-12-30 15:18:25 +00:00
Richard Sharpe
a07d253fda A small fix to torture.c to cleanup the error handling and prevent crashes.
I really should clean up the comment as well.
(This used to be commit 34351e457a)
2003-12-19 01:43:44 +00:00
Volker Lendecke
0064a113f2 Two trivial warnings
Volker
(This used to be commit a13e088493)
2003-12-02 11:36:02 +00:00
Tim Potter
9f154119e8 Final round of printf warnings fixes for the moment.
(This used to be commit 0519a7022b)
2003-11-06 22:11:08 +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
Tim Potter
ec890d5c0f 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>.
(This used to be commit 18adfdbe0c)
2003-10-14 03:56:42 +00:00
Alexander Bokovoy
da0397bd2f Add CAP VFS module from Monyo. Primary purpose of this module is to provide CAP-compatible encoded file names for CJKV
(This used to be commit e8a5a962ed)
2003-08-27 20:04:23 +00:00
Alexander Bokovoy
7e27147422 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
(This used to be commit e855dc8c91)
2003-08-26 19:48:16 +00:00
Gerald Carter
8bfe26b62d metze's autogenerate patch for version.h
(This used to be commit ae452e51b0)
2003-08-20 17:13:38 +00:00
Jeremy Allison
aed1610ec2 Fix for bugid #205 - work by Andrew Bartlet (modified to use
fixed buffer by me).
Jeremy.
(This used to be commit 6f68b8de47)
2003-08-12 04:25:26 +00:00
Jeremy Allison
29ca70cd34 Add a command line option (-S on|off|required) to enable signing on client
connections. Overrides smb.conf parameter if set.
Jeremy.
(This used to be commit 879309671d)
2003-07-30 23:49:29 +00:00
Gerald Carter
3a5dc7c2ec 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.
(This used to be commit 9f835b85dd)
2003-07-23 12:33:59 +00:00
Tim Potter
80c1f1d865 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.
(This used to be commit f93528ba00)
2003-07-22 04:31:20 +00:00
Gerald Carter
c674e411c7 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()
(This used to be commit 66359531b8)
2003-07-10 20:37:01 +00:00
Jeremy Allison
ce0709666c More conversions I missed. Thanks metze.
Jeremy.
(This used to be commit 4f78d747e6)
2003-07-04 18:52:31 +00:00
Jeremy Allison
9bcbaeee32 Fixed strlower changes I missed. Pointed out by metze.
Jeremy
(This used to be commit da5ee2b765)
2003-07-04 18:50:21 +00:00
Jelmer Vernooij
29674c7fa6 Move up intialisation of logging, so we catch errors in handling 'preload modules'
(This used to be commit 13b81d0d92)
2003-06-26 17:29:09 +00:00
Tim Potter
5e37c04c03 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.
(This used to be commit a7e67aaffe)
2003-06-20 02:31:15 +00:00
Tim Potter
7c16f64e38 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.
(This used to be commit 66bafbe371)
2003-06-16 03:30:53 +00:00
Andrew Tridgell
7c6aee526a fixed smbtorture LOCK1 test to know about the correct multiplier for
timed blocking locks
(This used to be commit 24feb1afa6)
2003-06-10 14:01:57 +00:00
Alexander Bokovoy
c39b90f047 Fix compiler warnings for vfstest. Patch from Stefan Metzmacher <mezte@metzemix.de>
(This used to be commit db255608f1)
2003-06-04 12:51:21 +00:00
Alexander Bokovoy
bc2a3748e9 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
(This used to be commit c2689ed118)
2003-05-14 10:59:01 +00:00
Alexander Bokovoy
e7c8c15888 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
(This used to be commit 91984ef5ca)
2003-05-11 23:34:18 +00:00
Jelmer Vernooij
0914e541f5 Reverse previous patch from Stefan and me after comments by Andrew Bartlett
(This used to be commit d817eaf0ec)
2003-05-10 11:49:51 +00:00
Jelmer Vernooij
c507ebe567 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.
(This used to be commit 74d9ecfe2d)
2003-05-10 10:53:48 +00:00
Andrew Bartlett
4918bf199c Fix use of uninitialised value in TCONDEV test - found by sun1 on the build farm
(This used to be commit 0dfeaf4535)
2003-05-03 04:30:21 +00:00
Jelmer Vernooij
d2cea7d289 Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
(This used to be commit ccabb7961a)
2003-04-27 20:47:15 +00:00
Andrew Bartlett
2e9c2084a6 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
(This used to be commit a93057efcb)
2003-04-23 09:26:07 +00:00
Andrew Bartlett
2206df6b30 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
(This used to be commit 0c83712692)
2003-04-23 08:12:34 +00:00
Gerald Carter
fb3ff5fc44 fixing torture build by merging code from HEAD
(This used to be commit 7798c7ee1a)
2003-04-18 03:35:39 +00:00
Gerald Carter
d15cd357c7 merge in metze' smbcquotas patch from HEAD
(This used to be commit b6a7704888)
2003-04-15 19:51:17 +00:00
Jelmer Vernooij
69980dacef Fix popt usage (backport from HEAD)
(This used to be commit 89a25ef20d)
2003-04-14 21:16:16 +00:00
cvs2svn Import User
a47d06a2c2 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 381649916e) 2003-04-13 13:50:46 +00:00
Gerald Carter
5b51fc4f06 smbcquota patch from metze
(This used to be commit 74fab8f0d2)
2003-04-11 23:32:00 +00:00
Jeremy Allison
dfdb51ca45 Added using different cnum test. WinXP and Samba now pass - Win2k fails.
Jeremy.
(This used to be commit bc094789b9)
2003-04-10 01:11:21 +00:00
Jeremy Allison
80b4dc4713 Ensure we have WinXP-like semantics for checking TIDs and FIDs.
Add torture test to ensure this is so.
Jeremy.
(This used to be commit e07dd4d93d)
2003-04-09 22:32:04 +00:00
Martin Pool
5b70d85047 Set character set to default (UTF-8) before running tests.
(This used to be commit b20d8b4970)
2003-04-09 05:31:39 +00:00
Martin Pool
80cd7c552f 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.
(This used to be commit 92acecd28c)
2003-04-09 05:22:17 +00:00
Martin Pool
bce94d35f1 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.
(This used to be commit 275e095c92)
2003-04-08 08:05:01 +00:00
Andrew Bartlett
854c5d60bd If the string does not convert back, print the buggy result.
(This used to be commit 98f7632554)
2003-04-06 12:01:44 +00:00
Andrew Bartlett
fbd5367245 Fix bigballofmud.so, and add a test to show a bug I'm having with push_ucs2.
Andrew Bartlett
(This used to be commit a60fd29b43)
2003-04-06 11:19:26 +00:00
cvs2svn Import User
80146c3d1d This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit cbc42567be) 2003-04-04 03:16:28 +00:00
Martin Pool
31c8c7156f Test harness that exercises check_dos_char()
(This used to be commit 346c763fd1)
2003-04-04 03:07:07 +00:00
John Terpstra
9660f5887e Merge from HEAD to define variable port_to_use. Needed to compile.
(This used to be commit b522892215)
2003-04-01 16:48:18 +00:00
Andrew Tridgell
65d7f6afba reversed the sense of the TCON test, now that we know that win2003
fixes this. This means that TCON fails on win2000, but passes on Samba
and win2003
(This used to be commit 591a500ed7)
2003-04-01 10:56:23 +00:00
Volker Lendecke
5fd03bffd3 This changes our handling of invalid service types that the
client requested on tconx. We now return the same error
code like NT4SP6 and W2kSP3 return.

TCONDEV is a little test for this.

Volker
(This used to be commit 6f94ab8ed5)
2003-03-30 16:37:10 +00:00
Volker Lendecke
17d188d999 This changes our handling of invalid service types that the
client requested on tconx. We now return the same error
code like NT4SP6 and W2kSP3 return.

TCONDEV is a little test for this.

Volker
(This used to be commit 6ab88f31d6)
2003-03-30 16:36:21 +00:00
Andrew Tridgell
cb830f05ae added simple tests for SMBchkpath and SMBioctl
(This used to be commit ca982a9f1d)
2003-03-30 09:45:44 +00:00
Andrew Tridgell
19a384a54c updated the TCON test so that win2000 passes. Samba now fails this
test.

It is an interesting test because it shows that win2000 completely
ignores the TID and VUID fields in a SMBwriteX. In Samba it is hard to
do this as we check the VUID and TID fields before we call the SMB
specific reply functions.

The test also shows that the list of open files must be global to the
socket, not specific to a tcon.
(This used to be commit be98069c4e)
2003-03-29 23:30:53 +00:00
Andrew Tridgell
dfcf1634bc added a simple test for the old SMBtcon interface
(This used to be commit c95ae394c5)
2003-03-29 12:44:42 +00:00