Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 09 Dec 2001 18:25:02 -0800
From:      Terry Lambert <tlambert2@mindspring.com>
To:        Dima Dorfman <dima@trit.org>
Cc:        chris@FreeBSD.ORG, Igor M Podlesny <poige@morning.ru>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: jail.c.patch (allowing to use hostnames when invoking jail(8))
Message-ID:  <3C141CFE.3346BDAF@mindspring.com>
References:  <20011209191948.6AB703E3A@bazooka.trit.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This patch will break backward compatability with existing scripts.

Since it is an easy matter to call inet_aton() on the buffer, and
then call gethostbyname() only if inet_aton() returns INADDR_NONE
(which would allow either a host name or an IP address to be used),
please use this approach instead.

This also implies minor modification to the usage message and the
man page, but you are hacking them up anyway.

Thanks,
-- Terry

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C141CFE.3346BDAF>