1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-11 00:23:51 +03:00
Commit Graph

2443 Commits

Author SHA1 Message Date
Andrew Tridgell
29fab12d0b r3280: fixed byte order of rhs IP 2007-10-10 13:04:49 -05:00
Andrew Tridgell
b8a2afae67 r3279: Removed MSG_DONTWAIT flags as many platform don't have it.
If a socket is non-blocking then adding MSG_DONTWAIT is pointless (it
does nothing), so all we lose is the ability to set non-blocking on a
packet-by-packet basis, which is not a very useful thing to have
anyway

if the socket is blocking then the code already adds MSG_WAITALL, so
MSG_DONTWAIT is also not needed in that case.
2007-10-10 13:04:49 -05:00
Andrew Tridgell
7f2c771b0e r3278: - rewrote the client side rpc connection code to use lib/socket/
rather than doing everything itself. This greatly simplifies the
  code, although I really don't like the socket_recv() interface (it
  always allocates memory for you, which means an extra memcpy in this
  code)

- fixed several bugs in the socket_ipv4.c code, in particular client
  side code used a non-blocking connect but didn't handle EINPROGRESS,
  so it had no chance of working. Also fixed the error codes, using
  map_nt_error_from_unix()

- cleaned up and expanded map_nt_error_from_unix()

- changed interpret_addr2() to not take a mem_ctx. It makes absolutely
  no sense to allocate a fixed size 4 byte structure like this. Dozens
  of places in the code were also using interpret_addr2() incorrectly
  (precisely because the allocation made no sense)
2007-10-10 13:04:49 -05:00
Andrew Tridgell
50377db11b r3277: don't use the non-portable getaddrinfo() function, instead use
interpret_addr() and if someone wants to add support to that function
for ipv6 then they are welcome to.
2007-10-10 13:04:49 -05:00
Andrew Tridgell
bc83d823b2 r3276: - allow for more than 256 open old style searches (limit currently set at an arbitrary 5000)
- auto-cleanup old searches that the client forgot to close (common with old searches)

- expanded the RAW-SEARCH test to test more than 256 old searches, and
  old search rewind (w2k3 fails this - it appears to not support rewind
  on old style searches)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
cc93813e4a r3271: use "struct messaging_context *" instead of "void *" in messaging API 2007-10-10 13:04:48 -05:00
Andrew Tridgell
8ba10229c3 r3270: - added another unlink test
- removed BASE-TRANS2 from the list of tests to be worked on (its
  already in the "passes" list)
2007-10-10 13:04:48 -05:00
Andrew Tridgell
bc392d88b1 r3269: fixed return value 2007-10-10 13:04:48 -05:00
Andrew Tridgell
5352613342 r3268: - fixed wildcard handling in new dirlist code
- ensure that d_name from readdir is not used after closedir
2007-10-10 13:04:48 -05:00
Andrew Tridgell
c5d338d061 r3267: make LIBTDB depend on LIBREPLACE. This is needed for building the tdb tools on Solaris. 2007-10-10 13:04:48 -05:00
Andrew Tridgell
e5a0763655 r3263: - pvfs now passes RAW-SEARCH 2007-10-10 13:04:48 -05:00
Andrew Tridgell
0d98f7653a r3262: - new pvfs_dirlist code that reopens the directory between search
calls. This is needed to allow for "new files appear during a search"
  behaviour

- pvfs now passes RAW-SEARCH
2007-10-10 13:04:48 -05:00
Andrew Tridgell
05530bfb99 r3261: added seek to RAW-SEARCH test 2007-10-10 13:04:47 -05:00
Andrew Tridgell
692623c6c0 r3260: redid the pvfs_dirlist() interface in preparation for a "keep
directory open" implementation, as opposed to the "load the whole
directory" interface used now. This will be needed to pass RAW-SEARCH
2007-10-10 13:04:47 -05:00
Andrew Tridgell
cc58d249f9 r3259: expanded the RAW-SEARCH test some more 2007-10-10 13:04:47 -05:00
Andrew Tridgell
51f84800d5 r3258: fixed "don't change" attribute for RAW_SFILEINFO_BASIC_INFO 2007-10-10 13:04:47 -05:00
Andrew Tridgell
097823bbde r3257: make the RAW-SEARCH test less sensitive to the servers directory ordering 2007-10-10 13:04:47 -05:00
Andrew Tridgell
f1c5be396b r3256: get rid of the unused session_claim() and session_yield() calls 2007-10-10 13:04:47 -05:00
Andrew Tridgell
86b5118c2a r3255: - fixed 2 uninitialised data errors found with valgrind
- fixed offset of setup words in nttrans reply
2007-10-10 13:04:47 -05:00
Andrew Tridgell
98f6dbdba4 r3254: - expanded the RAW-IOCTL test
- fixed the old ioctl interface to not check handle before failing

- pvs now passes RAW-IOCTL
2007-10-10 13:04:46 -05:00
Andrew Tridgell
367f0c2af4 r3253: - added rudimentary support for ntioctl in pvfs
- catch the SIGXFSZ signal, which for some completely insane reason is
  generated in current Linux systems when you write before the maximum
  offset in a file (maximum is 2^41 on my box). Why wasn't errno good
  enough for this?

- give the right ntstatus code for large offset write failures
2007-10-10 13:04:46 -05:00
Andrew Tridgell
a024cef2d0 r3252: pvfs now passes BASE-TRANS2 2007-10-10 13:04:46 -05:00
Andrew Tridgell
d4042c4364 r3251: - move the openattr test code into basic/attr.c
- cleaned up the RAW-WRITE test so it passes against w2k3, and gives
  more useful error messages
2007-10-10 13:04:46 -05:00
Tim Potter
68cd0b82e9 r3250: Add idl for printer info level 0. 2007-10-10 13:04:46 -05:00
Andrew Tridgell
98aea91ce6 r3249: - change_time is closer to ctime than mtime
- pvfs now passes the RAW-CLOSE test
2007-10-10 13:04:46 -05:00
Andrew Tridgell
4cdd750b5c r3248: don't stop searches on failed fill_search_info() 2007-10-10 13:04:46 -05:00
Andrew Tridgell
36286e477c r3247: FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info 2007-10-10 13:04:46 -05:00
Andrew Tridgell
090574c698 r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE 2007-10-10 13:04:45 -05:00
Andrew Tridgell
3d5f7f4ac4 r3245: use __location__ in RAW-SEARCH 2007-10-10 13:04:45 -05:00
Andrew Tridgell
230ec4d980 r3244: pvfs now passes the RAW-UNLINK and RAW-READ tests 2007-10-10 13:04:45 -05:00
Andrew Tridgell
977bc87d18 r3243: read the high offset count in SMBreadx in the server 2007-10-10 13:04:45 -05:00
Andrew Tridgell
ecd4e315b9 r3242: make the RAW-READ test not exercise the 0-0 lock, which is not deterministic 2007-10-10 13:04:45 -05:00
Andrew Tridgell
7ce6139f98 r3241: don't skip the read completely for a zero-length read, as it could give a lock conflict 2007-10-10 13:04:45 -05:00
Andrew Tridgell
9305b07af3 r3240: - update the rules for what error codes should be given on the
different type of unlink an seach mismatches

- wildcard directory listings that have attribute
  FILE_ATTRIBUTE_DIRECTORY and match "." or ".." should be failed.

- don't set the write_time on SMBclose unless it is non-zero

- added much better support for setfileinfo and setpathinfo in pvfs

- better (and more efficient) handling of .. and . components in filenames
2007-10-10 13:04:45 -05:00
Andrew Tridgell
16c7dd6417 r3239: reads of more than UINT16_MAX bytes should return 0 bytes 2007-10-10 13:04:45 -05:00
Andrew Tridgell
687633b5d6 r3238: rename null_mtime() to the more accurate name "null_time()", and
expose it for use by the posix backend
2007-10-10 13:04:44 -05:00
Andrew Tridgell
e9aa1f7899 r3237: - allow for readx calls larger than 64k
- combine setattre and standard levels in setfileinfo, as they use the
  same structure
2007-10-10 13:04:43 -05:00
Andrew Tridgell
5b239ad57b r3236: test a few more combinations in RAW-UNLINK 2007-10-10 13:04:43 -05:00
Andrew Tridgell
e07c557eca r3235: try readx beyond 64k in RAW-READ 2007-10-10 13:04:43 -05:00
Andrew Tridgell
70be45de05 r3234: in SMBreadx, if the client asks for exactly 65535 bytes then don't try
to align the buffer, as that would make the read reply not fit
2007-10-10 13:04:43 -05:00
Andrew Tridgell
d84ade90ce r3227: added a per-share option "case insensitive filesystem", that tells the
backend that the underlying filesystem is case insensitive, so it can
bypass the directory search if the name is not found.
2007-10-10 13:04:43 -05:00
Andrew Tridgell
b2bdde6d14 r3224: add the LOCAL-* tests to test_posix.sh 2007-10-10 13:04:43 -05:00
Andrew Tridgell
f6862bfc1c r3223: continue the effort on LIBREPLACE to try to get the ldb tools to
compile on platforms like solaris without having to link to the whole
of the Samba4 lib directory.
2007-10-10 13:04:43 -05:00
Volker Lendecke
d91659b037 r3219: Hi, Andrew B.!
Not sure which Samba3 you mean, but *my* one bails out with
INVALID_PARAMETER...

Volker
2007-10-10 13:04:42 -05:00
Volker Lendecke
478ba62915 r3218: Fix the build 2007-10-10 13:04:42 -05:00
Tim Potter
994fe92feb r3217: Start of a spoolss_GetPrinter test. 2007-10-10 13:04:42 -05:00
Tim Potter
b7ff5f0ded r3216: Add tests for OpenPrinterEx and ClosePrinter. 2007-10-10 13:04:42 -05:00
Tim Potter
6a9e18528c r3215: access_required -> access_mask for OpenPrinterEx 2007-10-10 13:04:42 -05:00
Jelmer Vernooij
636d209814 r3214: Load the config file (required for ncacn_np:) 2007-10-10 13:04:42 -05:00
Jelmer Vernooij
a9473750f6 r3213: Make credentials in a binding dialog optional
Small fixes in gepdump
2007-10-10 13:04:42 -05:00