Subject: Re: gethostname and getdomainname
To: Christos Zoulas <firstname.lastname@example.org>
From: Ignatios Souvatzis <email@example.com>
Date: 11/15/1999 01:01:34
On Sun, Nov 14, 1999 at 10:01:52PM +0100, Ignatios Souvatzis wrote:
> Didn't need to. First, it returns an errno not documented in sysctl(3), 2nd,
> I need to explictly get at the length anyhow (for passing it back), so it
> can use copyout, like before.
> Here's the kern_sysctl.c patch for review:
a NULL oldlenp in user space is not properly translated to a null
pointer in system space in the head of sys___sysctl(). Fixing this requires
fixing a lot of usage in other (than sysctl_string()) sub-functions...