1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-28 03:33:13 +03:00
Commit Graph

2425 Commits

Author SHA1 Message Date
Stefan Metzmacher
177afd4855 r3290: allow SID_ANONYMOUS ( "S-1-5-7" ) to be the users sid
metze
2007-10-10 13:04:51 -05:00
Stefan Metzmacher
5eb0ff78d5 r3289: Mr. L. and Mr. B.!
can we decide to not break WinXP clients:-)

metze
2007-10-10 13:04:50 -05:00
Andrew Tridgell
32dccf91cf r3288: - updated the path processing in pvfs to pass the RAW-CHKPATH test. This
rather extensive test reveals some really bizarre error code
  handling in w2k3.

- extended and simplified the RAW-CHKPATH test, making it easier to
  read (note that Samba3 fails the new tests - jra may wish to look)

- marked RAW-CHKPATH as pass for pvfs
2007-10-10 13:04:50 -05:00
Tim Potter
dd20730a09 r3287: The devicename and formname fields in a device mode are fixed length
strings.  Not sure how to write this as idl which maps to a char * but
at least devicemodes can be pulled off the wire sucessfully.
2007-10-10 13:04:50 -05:00
Andrew Tridgell
891d87a712 r3286: filled in more missing SV_TYPE_* defines 2007-10-10 13:04:50 -05:00
Andrew Tridgell
4545ac9bfa r3285: fixed another IDL typo 2007-10-10 13:04:50 -05:00
Andrew Tridgell
fe042b8e5c r3284: - don't use a enum for bit-fields. It isn't legal C (as C is limited to
signed integer values for enum), and it is also very confusing to read.

  Also, please align defines nicely. The value of SV_TYPE_DOMAIN_ENUM
  was defined incorrectly, which became obvious when you align the
  defines, but wasn't at all obvious in the original code.

- removed redundent defines in smb.h
2007-10-10 13:04:50 -05:00
Andrew Tridgell
fe913ad11b r3283: converted to quoted uuid() defines in all our IDL. This should help
the build on systems like solaris with the SunPRO compiler
2007-10-10 13:04:50 -05:00
Andrew Tridgell
4aab2cb210 r3282: some C pre-processors don't like expressions like
uuid(1ff70682-0a51-30e8-076d-740be8cee98b) so we now accept
uuid("1ff70682-0a51-30e8-076d-740be8cee98b") in pidl, and
automagically add quotes only if needed
2007-10-10 13:04:49 -05:00
Andrew Tridgell
00ff1ca1d2 r3281: some compilers can't handle empty structures, so for empty IDL
structures generate a single _empty_ element in the header
2007-10-10 13:04:49 -05:00
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