https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237778
Bug ID: 237778
Summary: sysctl.name (0.1) false positive
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
Attachment #204249 text/plain
mime type:
Created attachment 204249
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=204249&action=edit
file to reproduce the problem
The magical "sysctl.name" (0.1), implemented in kern_sysctl.c, gets the
'string name' from the 'int id' of a node, It returns 0 (false positive) and
builds a fake name for a non-existent OID. The problem is reproducible by the
attached file 'bad_name.c'.
Question: Is it a feature? (this code is 20-years-old)
Others OIDs sysctl.{oiddesc|oidfmt|oidlabel} return an error for a non-existent
node.
I have a solution, but I would be sure it is a problem before to create a diff
on review.freebsd.org.
Regards,
Alfonso
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"