X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source3%2Ftorture%2Ftorture.c;h=7a209859b3f86c52e2f719566b9f17fa7dd5c82d;hb=e18610a197aab80a32cae8c1e09b96496679bbad;hp=b47f247356c7310f276390d71fbc7a91368e08fe;hpb=632d0db8c42d50f5eecd002d9573f739cd945960;p=samba.git diff --git a/source3/torture/torture.c b/source3/torture/torture.c index b47f247356c..7a209859b3f 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -10878,6 +10878,7 @@ static bool run_local_sid_to_string(int dummy) { } static bool run_local_binary_to_sid(int dummy) { + struct sid_parse_ret ret; struct dom_sid *sid = talloc(NULL, struct dom_sid); static const uint8_t good_binary_sid[] = { 0x1, /* revision number */ @@ -10962,13 +10963,16 @@ static bool run_local_binary_to_sid(int dummy) { 0x1, 0x1, 0x1, 0x1, /* auth[31] */ }; - if (!sid_parse(good_binary_sid, sizeof(good_binary_sid), sid)) { + ret = sid_parse(good_binary_sid, sizeof(good_binary_sid), sid); + if (ret.len == -1) { return false; } - if (sid_parse(long_binary_sid2, sizeof(long_binary_sid2), sid)) { + ret = sid_parse(long_binary_sid2, sizeof(long_binary_sid2), sid); + if (ret.len != -1) { return false; } - if (sid_parse(long_binary_sid, sizeof(long_binary_sid), sid)) { + ret = sid_parse(long_binary_sid, sizeof(long_binary_sid), sid); + if (ret.len != -1) { return false; } return true; @@ -12534,6 +12538,10 @@ static struct { .name = "LOCAL-NAMEMAP-CACHE1", .fn = run_local_namemap_cache1, }, + { + .name = "LOCAL-IDMAP-CACHE1", + .fn = run_local_idmap_cache1, + }, { .name = "qpathinfo-bufsize", .fn = run_qpathinfo_bufsize,