]> git.ipfire.org Git - thirdparty/samba.git/commit
s4:scripting: fix gen_hresult.py
authorStefan Metzmacher <metze@samba.org>
Mon, 16 Dec 2024 13:43:41 +0000 (14:43 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 18 Dec 2024 17:29:37 +0000 (17:29 +0000)
commit6e0e9c4efc86f5ec4566aa0220ed4a74ad5436c1
treebdaff7448c2ba56ef572191771b0e36cb8265078
parentff4c70e03aebd9c1b54741d28154468029f7e887
s4:scripting: fix gen_hresult.py

Commit 6877e4849e81ed8f7f355fa4069f13a134e999ce reversed the
return values of hresult_errstr() and hresult_errstr_const().

hresult_errstr() should return "HRES_SEC_E_WRONG_PRINCIPAL",
while hresult_errstr_const() should return
"The target principal name is incorrect.".

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15769

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/scripting/bin/gen_hresult.py