These patches are not supported. They are provided here only for your
conveinience. If you port a patch to a newer version of jCIFS please
resubmit it to the mailing list.

SecurityDescriptors.patch:

This patch add an SmbFile.getSecurity() method that returns an ACE[]
array for the target file. Note however that there is still no way to
resolve SIDs to names or visa versa. This patch is also rather intrusive
so it will take a bit of work to apply. There are file that go with this
patch that I placed into the smb directory rather than putting them in
the patch. They are ACE.java NtTransQuerySecurityDesc*.java SID.java
SmbComNtTransaction*.java but some have been renamed to .jav to disable
them from being compiled. So to apply the patch you will need to go
through each of the affected files adjusting as necessary to the 1.2.7
codebase and then also rename the .jav files to .java and try to compile.

Also see examples/ListACL.java and examples/AclCrawler.java.

The ListACL.java example will list the ACEs of a specified path. Consider
the following commandline with resulting output of ListACL:

$ java -Djcifs.properties=../miallen.prp ListACL smb://svr01/pub/a/b/c/d
direct    allow 0x001F01FF S-1-5-21-839522115-1425521274-1417001333-61012
inherited deny  0x000F01FF S-1-5-21-839522115-1425521274-1417001333-61011
inherited allow 0x001F01FF S-1-5-21-839522115-1425521274-1417001333-61007
inherited deny  0x000F01FF S-1-5-21-839522115-1425521274-1417001333-61012
inherited allow 0x001F01FF S-1-5-32-544
inherited allow 0x001F01FF S-1-5-18
inherited allow 0x001200A9 S-1-5-32-545

LargeReadWrite.patch:

This patch adds two SMBs that supposedly improves read and write
performance considerably. Unfortunately it's not crystal clear
that all implementation properly support the commands. Note that
in addition to this patch an '& 0xFFFF' needs to be added in
SmbTransport.java:doRecv:~437 to appear as:

  int size = Encdec.dec_uint16be( BUF, 2 ) & 0xFFFF;

although this change has been made in 1.2.7.
