From owner-freebsd-bugs Fri Apr 13 9:40: 5 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2B41A37B449 for ; Fri, 13 Apr 2001 09:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3DGe2T73478; Fri, 13 Apr 2001 09:40:02 -0700 (PDT) (envelope-from gnats) Date: Fri, 13 Apr 2001 09:40:02 -0700 (PDT) Message-Id: <200104131640.f3DGe2T73478@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Thomas Quinot Subject: Re: bin/26148: mountd: can't change attributes for /usr Reply-To: Thomas Quinot Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/26148; it has been noted by GNATS. From: Thomas Quinot To: Martin Blapp Cc: freebsd-gnats-submit@FreeBSD.org, quinot@inf.enst.fr Subject: Re: bin/26148: mountd: can't change attributes for /usr Date: Fri, 13 Apr 2001 18:36:28 +0200 Le 2001-04-13, Martin Blapp écrivait : > Please test the fix for this problem: > http://home.teleport.ch/freebsd/mountd.c.diff2 The proposed fix does not entirely resolve the problem, because only the first address in a host's gt_addrinfo list is checked. On the other hand, the check on canonname is probably superfluous, since the kernel only considers the address. I have also replaced a direct struct sockaddr equality with a call to sacmp(), which seemed safer. I have modified your patch accordingly. The version available at http://www.infres.enst.fr/~quinot/mountd.c.diff3 seems to work here. Thomas. -- Thomas Quinot ** Département Informatique & Réseaux ** quinot@inf.enst.fr ENST // 46 rue Barrault // 75634 PARIS CEDEX 13 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message