From owner-cvs-all Sun Apr 22 14:50:35 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 728C137B423; Sun, 22 Apr 2001 14:50:31 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3MLoVR32416; Sun, 22 Apr 2001 14:50:31 -0700 (PDT) (envelope-from iedowse) Message-Id: <200104222150.f3MLoVR32416@freefall.freebsd.org> From: Ian Dowse Date: Sun, 22 Apr 2001 14:50:31 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mountd mountd.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG iedowse 2001/04/22 14:50:31 PDT Modified files: sbin/mountd mountd.c Log: When exporting a directory that is not a mountpoint, mountd repeatedly removes the last path component until the mount() succeeds. However, the code never checks if it has passed the mountpoint, so in some cases where the mount() never succeeds, it can end up applying the flags from a mounted filesystem to the underlying one. Add a sanity check to the code which removes the last path component: test that the fsid associated with the new path is the same as that of the old one. PR: bin/7872 Revision Changes Path 1.49 +9 -1 src/sbin/mountd/mountd.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message