Summary: | [libc] [patch] hash_action called with HASH_DELETE does NOT return 1 if the key is not found | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Base System | Reporter: | GB Clark <gclarkii> | ||||||
Component: | kern | Assignee: | freebsd-bugs (Nobody) <bugs> | ||||||
Status: | Closed Works As Intended | ||||||||
Severity: | Affects Only Me | CC: | avos | ||||||
Priority: | Normal | ||||||||
Version: | 4.6-STABLE | ||||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
Attachments: |
|
Description
GB Clark
2002-09-04 23:20:01 UTC
Hello, Attached is a patch to correct this bug. GB -- GB Clark II | Roaming FreeBSD Admin gclarkii@VSServices.COM | General Geek CTHULU for President - Why choose the lesser of two evils? Created attachment 153230 [details]
Updated patch
Here is a patch easier to read in bugzilla.
Note that the current behavior is similar to the other BSD's and the db version carried kerberos in Illumos, so it might be that it's just the documentation that needs to be updated.
For bugs matching the following conditions: - Status == In Progress - Assignee == "bugs@FreeBSD.org" - Last Modified Year <= 2017 Do - Set Status to "Open" As I can see from the code and / or attached patch hash_access() with HASH_DELETE parameter when the key is not found already returns 1 - that's the value of ABNORMAL macro: /* Return values */ #define SUCCESS (0) #define ERROR (-1) #define ABNORMAL (1) so the patch is actually no-op. |