From owner-freebsd-stable@FreeBSD.ORG Sun Oct 15 15:39:56 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C3616A417; Sun, 15 Oct 2006 15:39:56 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx0.rink.nu (thunderstone.rink.nu [80.112.228.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4F0843D55; Sun, 15 Oct 2006 15:39:48 +0000 (GMT) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx0.rink.nu (Postfix) with ESMTP id 6190A1707B; Sun, 15 Oct 2006 17:40:28 +0200 (CEST) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx0.rink.nu ([127.0.0.1]) by localhost (thunderstone.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d+TTbuUcxljc; Sun, 15 Oct 2006 17:40:22 +0200 (CEST) Received: by mx0.rink.nu (Postfix, from userid 1000) id C0DFF17077; Sun, 15 Oct 2006 17:40:22 +0200 (CEST) Date: Sun, 15 Oct 2006 17:40:22 +0200 From: Rink Springer To: Lin Jui-Nan Eric Message-ID: <20061015154022.GC50017@rink.nu> References: <47713ee10610150811w4cca315etc051e0fe14d88dab@mail.gmail.com> <20061015151924.GA50017@rink.nu> <47713ee10610150830g4dc4b747j9425d3b5194829f1@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="hHWLQfXTYDoKhP50" Content-Disposition: inline In-Reply-To: <47713ee10610150830g4dc4b747j9425d3b5194829f1@mail.gmail.com> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: stable@freebsd.org, Rink Springer Subject: Re: mountd changed? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Oct 2006 15:39:56 -0000 --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, On Sun, Oct 15, 2006 at 11:30:23PM +0800, Lin Jui-Nan Eric wrote: > Hi, > > If I revert to revision 1.81.2.4, it worked correctly. > > On 10/15/06, Rink Springer wrote: > >Hi, > > > >Hmm, I recently changed something which might trigger this. Could you > >back out revision 1.81.2.5 of src/usr.sbin/mountd/mountd.c and let me > >know whether this fixed the problem? > > OK, could you try the attached patch (untested) and let me know whether it works? (it patches the 1.81.2.5 revision of mountd.c) -- Rink P.W. Springer - http://rink.nu "Patience is for those who cannot afford decent hardware." - Peter Koeleman --hHWLQfXTYDoKhP50 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="mountd2.c.diff" --- mountd.c.org Thu Sep 21 10:07:57 2006 +++ mountd.c Thu Sep 21 10:08:42 2006 @@ -1912,7 +1912,7 @@ iov[5].iov_base = fsb->f_mntfromname; /* "from" */ iov[5].iov_len = strlen(fsb->f_mntfromname) + 1; - while (nmount(iov, iovlen, fsb->f_flags) < 0) { + while (nmount(iov, iovlen, fsb->f_flags | MNT_UPDATE) < 0) { if (cp) *cp-- = savedc; else --hHWLQfXTYDoKhP50--