Re: Bug in set/gethostname.

Linus Torvalds (
Sun, 17 May 1998 20:29:34 -0700 (PDT)

On Sun, 17 May 1998, Michael Elizabeth Chastain wrote:
> In my humble opinion, sys_gethostname should acquire the semaphore
> before calling strlen on system_utsname.nodename. That way, gethostname
> will return either the old name or the new name, but not some mongrel
> mixture of the two.

Right you are. Fixed.

> Also, system_utsname is used in a bunch of other places. These places
> look like they actually read or write it:

Not fixed. Anybody want to send me a patch for some of these (although
most are just backwards compatibility as far as I can tell: it might even
be time to remove some of it)?


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to