1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

8771 Commits

Author SHA1 Message Date
Andrew Tridgell
0dce9b003c r14935: try to avoid a race condition in the recursion test
(This used to be commit 659576806fef066203551281cab4dc5cd3234ff7)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
51a5b79ec0 r14934: greatly expand the RAW-NOTIFY testing of completion filters. We now
try each bit in the completion filter separately for a wide range of
file operations.
(This used to be commit 81f8b24526515d7a914022859fb03421c3a7611b)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
e54abee4e1 r14933: fix the handling of notify filters to be much closer to the behaviour
of w2k3. The behaviour is particularly tricky for rename.
(This used to be commit 4d3b8d95498a328ffc08ecb62d9531b6bfe4e2b5)
2007-10-10 14:00:19 -05:00
Andrew Tridgell
fe071da009 r14932: ensure that we send a NOTIFY_ACTION_OLD_NAME and
NOTIFY_ACTION_NEW_NAME together to the client.
(This used to be commit d58011b0f35c3299f35ba9d72a7b9b9b17253511)
2007-10-10 14:00:18 -05:00
James Peach
c5792dbbb5 r14930: Coalesce the "feature enabled" tests so that the config summary always
emits a yes or a no.
(This used to be commit c31e233a09c34fceee99193ef6f39ff3fabd543e)
2007-10-10 14:00:18 -05:00
Stefan Metzmacher
c35f146d66 r14929: add some comments
metze
(This used to be commit 5d40e10d8e5cef542826cd6ebda85cd602a2bf11)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
e221db7a39 r14928: demonstrate that the completion filter is only set on the first notify
on a directory handle
(This used to be commit b6e40d9b0832fbab662f9289a30c26e2576b4821)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
d8544db317 r14927: expand the RAW-NOTIFY test to test recursive and rename handling
(This used to be commit e6abb1ecbaa19e8b4627a279e420f8ecdf776e26)
2007-10-10 14:00:18 -05:00
Andrew Tridgell
1dee94c333 r14926: change the inotify backend to implement the rather unusual semantics
for rename. The cookies in inotify tell us (indirectly!) if its a
rename between directories or not
(This used to be commit 13574a8d0c7228bf36a6debe4853f693c9f8f543)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
930e247d56 r14925: trigger NOTIFY_ACTION_OLD_NAME and NOTIFY_ACTION_NEW_NAME events for
renames, if in the same directory. For renames between directories
generate NOTIFY_ACTION_REMOVED and NOTIFY_ACTION_ADDED
(This used to be commit 2ac248edf05c3ee715165f2b33055de480743e87)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
22c1c78b1d r14924: when handling recursive change notify, the client expects a windows
path name back
(This used to be commit ceb85d12f7efb002af7a271f999e22f94b8536fb)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
27e7c68763 r14921: I forgot to commit the IDL change for the subdir_filter
(This used to be commit af92520097bf817dca6e6ec8eab39b46388d048f)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
416d7b4210 r14920: allow a notify backend to separately specify if it has handled the
given mask for the current directory and sub-directories. This allows
us to setup the less efficient internal handling for subdirectories,
while using the kernel inotify service for the current directory if
available. It also allows inotify to handle only some of the filter
bits, leaving the other filter bits for the user space handler.
(This used to be commit 7c3d989fa44c7f57853a825337159f476d7dff80)
2007-10-10 14:00:17 -05:00
Andrew Tridgell
bacf1152fc r14919: disable the BASE-DEFER_OPEN test until it gets fixed (it sleeps for
way too long). Jeremy, whats the idea behind those long sleeps?

its also redundent, as the RAW-MUX test already tests the sharing
violation open delay
(This used to be commit d63d113c8aaa0104ab23380533dbc081c1ab0898)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
a9cb173f76 r14918: cleaner handling of systems without inotify
(This used to be commit cf17ff15b15942f0ce068dd0a94b3b565a9b93cb)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
66a0d69256 r14917: fixed length strings don't count any trailing nulls in the length
(This used to be commit 28d9a4d1a7aab0852f7f718621830f06cd7ff39b)
2007-10-10 14:00:16 -05:00
Andrew Tridgell
b9ccb39c48 r14916: print errno so I can work out why OpenBSD is failing the test for tdb
in the build farm. msync() is failing.
(This used to be commit 4c3f3c414135c2b8fa9ea11a156246b56285b84f)
2007-10-10 14:00:16 -05:00
Tim Potter
9956009a41 r14915: Work in progress - getting ldb_add() working.
(This used to be commit d50661ed4ef3f6c96811649a1acbe5d702e80654)
2007-10-10 14:00:16 -05:00
Jelmer Vernooij
1385cd968b r14914: Remove printf statement I accidently committed.
(This used to be commit ca4d1b4c0e1a18c2b071f49076251369370a785c)
2007-10-10 14:00:15 -05:00
Stefan Metzmacher
953f3c7418 r14913: readd --with-selftest-prefix as it's needed
to workarround the 108 char limitation on unix socket paths.

make test fails when I try to use ./st
in /home/People/metze/devel/samba/4.0/samba4-ci/source/

metze
(This used to be commit 2bef8208207151dc653c875f12058369c96eb9b0)
2007-10-10 14:00:15 -05:00
Stefan Metzmacher
770edafbf2 r14912: don't crash if inotify isn't present...
metze
(This used to be commit 953aa7887b310117a05a59291f3770a9beb5e1eb)
2007-10-10 14:00:15 -05:00
Jelmer Vernooij
192240634e r14911: Allow easy modification of selftest subdirectory name
(This used to be commit 3de7b7fca1265fc465c895e15594659afd179ae5)
2007-10-10 14:00:15 -05:00
Jelmer Vernooij
2054c7228a r14910: Remove unused configure options
(This used to be commit 3063e5311e137ef9a001216b40f74850c8e8261c)
2007-10-10 14:00:15 -05:00
Jelmer Vernooij
97fe71c1f5 r14909: Add lp_modulesdir() smb.conf option
(This used to be commit eaa68826d34c2bebc3df5e96aed2102debb67964)
2007-10-10 14:00:14 -05:00
Jelmer Vernooij
ccae1c47f0 r14908: Fix LD_LIBRARY_PATH
(This used to be commit c4668192f96b9b32af23a05f9f97dc87fdc41089)
2007-10-10 14:00:14 -05:00
Jelmer Vernooij
d4dfc5de66 r14907: Another attempt at fixing partially generated tables.c files
(This used to be commit 902d90bcb193968c937be9e7b23b6d5ee24b9fec)
2007-10-10 14:00:14 -05:00
Jelmer Vernooij
6ad6506cb1 r14906: Move SWIG-specific files to scripting/swig/
(This used to be commit 222723e4434b85748aa82f192c5c4ce136933ce3)
2007-10-10 14:00:14 -05:00
Jelmer Vernooij
7d53fb50f7 r14905: Prevent partly generated files when building using heavy parallel make.
(This used to be commit 5446ccc20d7468911bd0b4cd0aedf0a67bba20d1)
2007-10-10 14:00:14 -05:00
Andrew Tridgell
c1a9486faf r14904: fixed LIBNDR_FLAG_STR_CHARLEN (thanks to Metze for noticing this)
(This used to be commit 9569bf5374f92815ce1940f752aaff4a6913b4c0)
2007-10-10 14:00:13 -05:00
Andrew Tridgell
6312201a43 r14903: rewrote ndr_push_string() to be much simpler, and correctly handle
UTF8 strings. This should fix the german umlaut problem reported by
michael@drueing.de
(This used to be commit 73ba1215e0c9283296c16f36c91f5a966f3cc9f4)
2007-10-10 14:00:13 -05:00
Andrew Tridgell
64485f8761 r14902: change charcnv code to fail the conversion when it hits bad
characters, rather than silently truncating the string. This makes the
code much omre conservative, making it easier to test. It might mean
users hit problems initially, but at least we'll hear about them, and
thus can fix them.
(This used to be commit bb99cbf069db5ab09ecf6c55e4c87d4c28ea8169)
2007-10-10 14:00:13 -05:00
Tim Potter
b93e9b50ab r14901: More work on ldb swig interface. Wrap some more functions.
(This used to be commit 5b722fcd4b1e194532a86bed84d11d778ae16fcc)
2007-10-10 14:00:13 -05:00
Tim Potter
6705f888d5 r14897: Do more error checking of tdb function returns and raise IOError or
KeyError exceptions as appropriate.

Add a close() function to the wrapper as we can't rely on the
Python garbage collector destroying the object and closing the tdb file
at any particular time.
(This used to be commit a40d6c792257315d1eac955718db5ec1df7e07bb)
2007-10-10 14:00:13 -05:00
Stefan Metzmacher
1ac990ddcf r14894: - add some 'const'
- remove sid_active_in_token() was the same as security_token_has_sid()
- rename some functions

metze
(This used to be commit 81390dcda50f53d61e70059fb33014de0d283dc5)
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
5559f5e3e5 r14891: fix a bug found by the ibm checker
the problem was that we shift with <<= (privilege-1)

and we called the function with privilege=0

add some checks to catch invalid privilege values
and hide the mask representation in privilege.c

metze
(This used to be commit a69f000324764bcd4cf420f2ecba1aca788258e4)
2007-10-10 14:00:12 -05:00
Stefan Metzmacher
ed56a2c147 r14890: fix the usage of popt...
I don't know why this causes problems on my laptop today...

anyway we have done this change in smbtorture month ago...

metze
(This used to be commit ad84a69db276e3a655b2dc477214bbe0ed68411a)
2007-10-10 14:00:12 -05:00
Tim Potter
dd8b8dc98a r14881: Unpack ldb_message_element and ldb_val arrays. Python can now access
all parts of a ldb_result:

@BASEINFO has 2 elements
        elt[0]: val[0]: sequenceNumber = 2
        elt[1]: val[0]: distinguishedName = @BASEINFO
name=foo has 2 elements
        elt[0]: val[0]: foo = bar
        elt[1]: val[0]: distinguishedName = name=foo

Cleanup some swig junk that was only necessary when including config.h
and function prototypes that used the PRINTF_ATTRIBUTE() macro.

Add some more comments.
(This used to be commit 9327fd07d67da1845a60ccf2b7d1d43e9aed0d68)
2007-10-10 14:00:12 -05:00
Tim Potter
fab7e6605f r14880: Doc.
(This used to be commit 73b233ee1b7e25ec74c1764804690c6faab75fd0)
2007-10-10 14:00:12 -05:00
Tim Potter
aae53f673f r14879: Fix bug unpacking ldb_messages.
Start decoding more of ldb_message and ldb_message_result.
(This used to be commit 60f7f14baa7ff212138ac2349b94d56918566f73)
2007-10-10 14:00:11 -05:00
Tim Potter
574c9fd685 r14878: Write swig wrappers for ldb_init() and ldb_connect().
Start wrapper for ldb_search().  Currently it returns a list of swig
ldb_message objects.  More unpacking of results required.
(This used to be commit 704787978aa705edba233249e8eab236ffe303a4)
2007-10-10 14:00:11 -05:00
Andrew Tridgell
6d98076c15 r14877: added support for the kernel inotify mechanism. This passes basic
tests, but still needs some more work to ensure we correctly cope with
events that may generate both a system inotify event and a internal
notify event. The system inotify events won't handle recursion, and
don't understand things like streams.

This also adds the ntvfs/sysdep/ directory, which is meant for system
dependent code that is not tied to a particular ntvfs backend. The
inotify code is a good example of that.
(This used to be commit eadadbb44adb3c4081d6ff1d85a9b850a0227059)
2007-10-10 14:00:11 -05:00
Andrew Tridgell
69e40fa99a r14876: added ENOSYS to unix error mapping
(This used to be commit 77f32a273541afcd07f6da8a26315bf21ea05c51)
2007-10-10 14:00:11 -05:00
Jelmer Vernooij
733b5af73f r14875: Make better use of the build system
(This used to be commit 12429bb66f0f038f1a02932c012c9e9caae6d38c)
2007-10-10 14:00:11 -05:00
Jelmer Vernooij
c23ef0a872 r14874: Allow overriding LIBRARY_REALNAME
(This used to be commit 8f57c0e7bcd99556ba83497ce17b6723a637ac76)
2007-10-10 14:00:10 -05:00
Tim Potter
e9cf4f3098 r14873: Add skeleton swig ldb interface.
(This used to be commit c6c759e19f7fb9232d9c97b66d140c1bb0876dff)
2007-10-10 14:00:10 -05:00
Tim Potter
0235d37b32 r14871: We don't need to import UserDict anymore.
(This used to be commit c60a2335383eb277a82dbe073ce9b58f8abf0241)
2007-10-10 13:59:45 -05:00
Tim Potter
f586b11f73 r14870: Update to link with dynamic instead of static objects.
(This used to be commit 20d68c60b7b7dce1f4f82cb6d3af9431a0660854)
2007-10-10 13:59:45 -05:00
Jelmer Vernooij
1b22141c87 r14867: Include <stdbool.h> in external compiles
(This used to be commit 03224dab111b931effd548586e630480fa1423b1)
2007-10-10 13:59:44 -05:00
Jelmer Vernooij
8e738cc6d4 r14866: Fix CFLAGS when building compile_et. This should fix the build
on some of the buildfarm hosts. Thanks to Richard Bollinger <rabollinger@gmail.com> for helping debug this.
(This used to be commit ab0c2ede27550f400c1ffb8fc1adbeddb477468e)
2007-10-10 13:59:44 -05:00
Stefan Metzmacher
bb13111509 r14861: regenerate the proto headers when the .mk file changes
metze
(This used to be commit e167ce935a5e0c8f859dc2b1fef859418ab9edfb)
2007-10-10 13:59:44 -05:00