Michael Adam
50b5a7dc62
rpc_open_tcp: now drsuapi is complete, we can use it in the test program.
...
Michael
(This used to be commit 73eb8b7386109c72b13f8d7b5ff5db9baaef280d)
2008-05-24 01:33:52 +02:00
Michael Adam
5a2206f254
torture: add a test program rpc_open_tcp() to test the rpc_pipe_open_tcp() func.
...
This is still very raw and has yet to be integrated into the test suite.
Michael
(This used to be commit 3ec3ab4e5309c63bbf2fa5efa5d2c47856560a0f)
2008-05-22 11:30:03 +02:00
Tim Prouty
fb37f15600
Cleanup size_t return values in callers of convert_string_allocate
...
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc562d86dcaa685419d0cb6ea276f100d)
2008-05-20 22:40:13 +02:00
Volker Lendecke
5bda9a8af0
Remove "user" from connection_struct
...
(This used to be commit 368454a27cb53a408ec416cbf37235b304592fb5)
2008-05-10 11:17:01 +02:00
Volker Lendecke
95c84dd791
Make nsstest valgrind-clean: buf is referred to by the parsed grp struct
...
(This used to be commit 20ddbcaa0c113646cea774c36209f382cada50b0)
2008-04-22 16:55:04 +02:00
Michael Adam
0db7aba8af
Remove redundant parameter fd from SMB_VFS_CLOSE().
...
Now all those redundant fd's have vanished from the VFS API.
Michael
(This used to be commit 14294535512a7f191c5008e622b6708e417854ae)
2008-04-21 00:22:42 +02:00
Volker Lendecke
1a3cad6e6d
Print out the used seed in smbtorture
...
(This used to be commit 26d64d22d65938023a4e45c3893e7021e51f4d9c)
2008-03-08 22:29:35 +01:00
Michael Adam
3e581eeee9
Remove a useless variable.
...
Michael
(This used to be commit 661b9f3d779b419e72968dd3b42348f9da68d803)
2008-02-28 12:20:43 +01:00
Michael Adam
d4123ba9ee
Fix a pointer to int conversion warning: cast the int instead.
...
Michael
(This used to be commit 3cace4b7aa87a2f5bc7b6efd095366699d939511)
2008-02-15 13:14:20 +01:00
Michael Adam
a10e6183aa
Fix two const warnings.
...
Michael
(This used to be commit 03db3bd0774e0435089eef15f88355133149d658)
2008-02-15 13:12:38 +01:00
Michael Adam
8a63e13225
Try to fix the build of smbiconv on systems without native iconv.
...
Use the smb_iconv_t instead of iconv_t.
Michael
(This used to be commit bdc00a05b95a7a629a6cbf2af21760b6ff874bd9)
2008-02-15 13:11:41 +01:00
Michael Adam
dd255b4275
Fix compiling torture/smbiconv.c: allow to use realloc directly by #undef realloc.
...
Michael
(This used to be commit 113377a7929975bf29c2cfff1652781fae24e826)
2008-02-15 11:39:25 +01:00
Michael Adam
d4ab4b3af7
Remove torture/samtest.h - last trace of late samtest.
...
Michael
(This used to be commit e846148116f84d1428b5c7e60a4181cc872cc3eb)
2008-02-15 11:27:42 +01:00
Volker Lendecke
8daaa5d99b
Fix some IBM checker warnings
...
(This used to be commit 0341b0be49fef5e6003a170100388b5c47a41e67)
2008-01-30 19:57:10 +01:00
Kai Blin
5b5d56d84a
ntlm_auth: test should honour configfile option to run on build farm.
...
(This used to be commit 11c9c1536b153047ba387b9804f34a6555a5ae26)
2008-01-30 17:57:32 +01:00
Kai Blin
a626fa59cc
ntlm_auth: Add a blackbox test.
...
(This used to be commit f02b74fc067074d8e48e186a7b7255a244592f7d)
2008-01-30 15:26:27 +01:00
Volker Lendecke
587cf54c61
strtok -> strtok_r
...
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-23 15:08:04 +01:00
Volker Lendecke
2411c6cb90
Add "split_ntfs_stream_name()" together with a torture test
...
(This used to be commit d813bd9e02d9baf916eb96c478be89f0c435e07c)
2008-01-19 23:10:09 +01:00
Michael Adam
e9a3a62e74
Remove redundant parameter fd from SMB_VFS_WRITE().
...
Michael
(This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)
2008-01-10 15:49:35 +01:00
Michael Adam
1d66f4d58b
Remove redundant parameter fd from SMB_VFS_READ().
...
Michael
(This used to be commit a8fc2ddad8d5f7c6c00cb36c74a32a02d69d1d04)
2008-01-10 15:33:51 +01:00
Michael Adam
79180e6563
Fix memory handling in torture/cmd_vfs.c:cmd_open and don't leak fsp_name.
...
Michael
(This used to be commit f93fc818143a7442a6e8a90f16f60c536a5b8f9e)
2008-01-09 11:25:43 +01:00
Michael Adam
edd30e716f
Remove redundant parameter fd from SMB_VFS_LOCK().
...
Michael
(This used to be commit 4f3ab2c406072e0b43581057e7e785e8ad454cfa)
2008-01-07 16:38:23 +01:00
Michael Adam
b457b94bb8
Remove redundant parameter fd from SMB_VFS_FTRUNCATE().
...
Michael
(This used to be commit 2ad66050a0452b8e7e08b1e7a01efa00c72fd451)
2008-01-07 15:59:02 +01:00
Michael Adam
670909cb07
Remove redundant parameter fd from SMB_VFS_FCHOWN().
...
Michael
(This used to be commit fbb193db3e0dc51cb000ae406a68bc547f31d9ab)
2008-01-07 15:59:02 +01:00
Michael Adam
e614dec27f
Remove redundant parameter fd from SMB_VFS_FCHMOD().
...
Michael
(This used to be commit a54d5604da556d1250ca9948d4acc4a187a9fede)
2008-01-07 15:59:02 +01:00
Michael Adam
87a684f7fc
Remove redundant parameter fd from SMB_VFS_FSTAT().
...
Michael
(This used to be commit 0b86c420be94d295f6917a220b5d699f65b46711)
2008-01-07 15:59:01 +01:00
Michael Adam
8dcce0d236
Remove redundant parameter fd from SMB_VFS_FSYNC().
...
Michael
(This used to be commit 8f83c9a7b245dbfef28195f9a7f33047a8ba95a0)
2008-01-07 15:59:01 +01:00
Michael Adam
6f657c873e
Remove redundant parameter fd from SMB_VFS_LSEEK().
...
Michael
(This used to be commit df929796f2698698d2875227bda8500589cca2df)
2008-01-07 15:59:01 +01:00
Jeremy Allison
71a24317fe
Added -e option to smbtorture to test encrypted versions
...
of the tests.
Jeremy.
(This used to be commit e85b346f3d73f50d6dea19ffb6cca1180345e687)
2008-01-04 16:09:24 -08:00
Volker Lendecke
e70c97ef85
Remove the sampwent interface
...
(This used to be commit 9e80b969fb40766de2c9b1a05d16bf4d4c6e46f7)
2007-12-26 18:57:15 +01:00
Volker Lendecke
f427d4ce65
Add a in-memory cache
...
This is a more general API that caches data with a LRU scheme. See
include/cache.h. No comments yet, I'm still working on it. But Jeremy has given
me a hint in one of his checkins that he would like to make use of this now.
The idea is that we get rid of all our silly little caches and merge them all
into one cache that we can then very easily trim, for example even with a
smbcontrol message if someone decides memory is tight. The main user is the
stat cache, this patch also converts the getwd cache. More caches to come.
(This used to be commit 7a911b35713538d82001a3c9f34152e293fe1943)
2007-12-18 09:56:04 +01:00
Volker Lendecke
7ec9ee0e05
Remove t_doschar.c
...
(This used to be commit b89f87242b9c949401f3fa9b352211906cb76895)
2007-12-17 07:18:30 +01:00
Jeremy Allison
7faee02d0d
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10 11:30:37 -08:00
Volker Lendecke
d5ab80054d
dbwrap_rbt
...
This is meant as a replacement for the internal tdb. To me it seems a bit silly
that for in-memory structures we do our own memory management. With this rbt
based approach we can make use of the system-supplied malloc.
(This used to be commit 54e5d4404619443caed32e2acff8921cdbff9ed1)
2007-12-10 16:06:32 +01:00
Volker Lendecke
d60fac2a5a
Tiny simplifications
...
locking.c:open_read_only was unused
don't export the silly boolean flag locking_init(bool read_only)
(This used to be commit 2f3c865707010bc7c463a02782dbee3dc2479da1)
2007-12-10 12:22:01 +01:00
Jeremy Allison
acf15ae730
Don't build rpctorture anymore - not maintained. Just remove.
...
Remove all vestiges of pstring (except for smbctool as noted
in previous commit).
Jeremy
(This used to be commit 4c32a22ac50ada3275d2ffba3c1aa08bee7d1549)
2007-12-07 12:26:32 -08:00
Jeremy Allison
1b92ea5559
Remove pstrings from client/client.c by doing a large rewrite.
...
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
2007-12-06 17:16:33 -08:00
Volker Lendecke
195d6be38d
remove some statics
...
(This used to be commit 97c9a4042d36178a728b5e0f8923091c7069366d)
2007-12-05 14:39:07 +01:00
Volker Lendecke
113cb765aa
add SESSSETUP_BENCH
...
(This used to be commit 3b057022a570a1fb68e03c477a6989e7d1e7cef2)
2007-12-05 10:15:54 +01:00
Jeremy Allison
3ec5a37280
Ok, down to just the client/*.c code now.
...
Jeremy.
(This used to be commit 7d3959f81a5439800b813ef052382e67424c90cd)
2007-12-04 18:02:06 -08:00
Jeremy Allison
74dfee916f
Remove tok pstring from util_str.c
...
Do we even make rpctorture anymore ?
Jeremy.
(This used to be commit fecc3cc45af6145fad9a0570e6cae8422bd2443d)
2007-12-04 17:23:19 -08:00
Jeremy Allison
755051b569
pull_ascii_pstring is gone.
...
Jeremy.
(This used to be commit 288aacce4b56d159218be311019cb951e5a232fd)
2007-12-04 17:05:33 -08:00
Jeremy Allison
de7fd585b1
The usual !pstring...
...
Jeremy.
(This used to be commit b676262a781363e7be49b21817668a53cca75c2d)
2007-12-04 16:56:18 -08:00
Jeremy Allison
4e266bd60f
Remove pstring from clirap.c.
...
Jeremy.
(This used to be commit 6e27663cb44a79f729fa4366e000c43383f6d1b7)
2007-11-30 16:13:35 -08:00
Volker Lendecke
e63bcdd720
Remove the silly "user_socket_options" global variable
...
This is better done with a 'lp_do_parameter(-1, "socket options", ..);
(This used to be commit 814bed029efa391e664ac432d0d68dfeab26381f)
2007-11-09 15:11:54 +01:00
Jeremy Allison
5f4693d8f8
Remove more pstring/fstrings.
...
Jeremy.
(This used to be commit 7a1de5b44e84a7474e78518c6ba33b3fedc42b5f)
2007-11-08 18:50:07 -08:00
Jeremy Allison
5b0b4f23ef
Remove most of the remaining globals out of lib/util_sock.c.
...
I have a plan for dealing with the remaining..... Watch
this space.
Jeremy.
(This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03 23:20:10 -07:00
Jeremy Allison
51a0354d75
Remove more static data from lib/util_sock.c and
...
callers.
Jeremy.
(This used to be commit 35aaa36f82c70964cee5d0778eb04547b226dd3f)
2007-11-03 22:34:46 -07:00
Jeremy Allison
d4307679b9
Change all occurrences of zero_addr(&ss,AF_INET) to
...
zero_addr(&ss). All current uses were always of the
AF_INET form, so simplify the call. If in the future
we need to zero an addr to AF_INET6 this can be
done separately.
Jeremy.
(This used to be commit 2e92418a138bf2738b77b7e0fcb2fa37ad84fc0c)
2007-10-27 20:29:36 -07:00
Jeremy Allison
f88b7a076b
This is a large patch (sorry). Migrate from struct in_addr
...
to struct sockaddr_storage in most places that matter (ie.
not the nmbd and NetBIOS lookups). This passes make test
on an IPv4 box, but I'll have to do more work/testing on
IPv6 enabled boxes. This should now give us a framework
for testing and finishing the IPv6 migration. It's at
the state where someone with a working IPv6 setup should
(theorecically) be able to type :
smbclient //ipv6-address/share
and have it work.
Jeremy.
(This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
2007-10-24 14:16:54 -07:00