[PATCH] add generated NTSTATUS error module for python

Bob Campbell bobcampbell at catalyst.net.nz
Sun Jan 15 20:51:16 UTC 2017


Hi Andrew,

Attached are revised patches.

On 13/01/17 20:45, Andrew Bartlett wrote:
> - Can you include the source (doc name, source URL and method) for the
> error table? eg [MS-ERREF] http://msdn.microsoft.com/en-us/library/cc70
> 4588.aspx if that is the correct URL (I guess it may not be very
> stable).
Fixed. I'd previously forgotten to add the license and source in git,
but I've now moved it into the same file, which is a lot cleaner.
>
> - in 009-samba-tool-domain-use-generated-ntstatus-rather-than.patch
>
>> +import samba
>> +from samba import ntstatus
> Do we need the import samba?
Nope, we don't. Fixed.

Thanks,
Bob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-errors-generate-python-error-codes-for-NTSTATUS.patch
Type: text/x-patch
Size: 2793 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0001-errors-generate-python-error-codes-for-NTSTATUS-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-errors-fix-generate-python-error-codes-for-NTSTATUS.patch
Type: text/x-patch
Size: 2621 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0002-errors-fix-generate-python-error-codes-for-NTSTATUS-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-errors-gen_ntstatus-generate-error-codes-in-specifie.patch
Type: text/x-patch
Size: 11665 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0003-errors-gen_ntstatus-generate-error-codes-in-specifie-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-errors-gen_ntstatus-add-error-table-for-generation-s.patch
Type: text/x-patch
Size: 246053 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0004-errors-gen_ntstatus-add-error-table-for-generation-s-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-errors-add-gen_ntstatus.py-to-build-system.patch
Type: text/x-patch
Size: 499278 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0005-errors-add-gen_ntstatus.py-to-build-system-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-errors-remove-duplicate-error-string-table-entries.patch
Type: text/x-patch
Size: 1644 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0006-errors-remove-duplicate-error-string-table-entries-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-python-Add-python-module-with-NTSTATUS-constants.patch
Type: text/x-patch
Size: 940 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0007-python-Add-python-module-with-NTSTATUS-constants-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-samba-tool-domain-change-incorrect-NT_STATUS-to-WERR.patch
Type: text/x-patch
Size: 2341 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0008-samba-tool-domain-change-incorrect-NT_STATUS-to-WERR-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-samba-tool-domain-use-generated-ntstatus-rather-than.patch
Type: text/x-patch
Size: 8627 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0009-samba-tool-domain-use-generated-ntstatus-rather-than-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-samba-tool-domain-catch-NTSTATUSError-rather-than-Ru.patch
Type: text/x-patch
Size: 7073 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/0010-samba-tool-domain-catch-NTSTATUSError-rather-than-Ru-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ntstatus-compare-script.py
Type: text/x-python
Size: 4380 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170116/47f39cf7/ntstatus-compare-script-0001.py>


More information about the samba-technical mailing list