From owner-freebsd-hackers Tue Apr 9 23:46:34 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hawk.mail.pas.earthlink.net (hawk.mail.pas.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id B362B37B41C; Tue, 9 Apr 2002 23:46:30 -0700 (PDT) Received: from pool0293.cvx21-bradley.dialup.earthlink.net ([209.179.193.38] helo=mindspring.com) by hawk.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 16vBrf-00054s-00; Tue, 09 Apr 2002 23:45:55 -0700 Message-ID: <3CB3DF85.E37DAB77@mindspring.com> Date: Tue, 09 Apr 2002 23:45:25 -0700 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: cjclark@alum.mit.edu Cc: Julian Elischer , Dan Nelson , Michael Smith , Doug White , "=?iso-8859-1?Q?Pawe=B3?= Jakub Dawidek" , freebsd-hackers@FreeBSD.ORG Subject: Re: Hardlinks... References: <3CB37C7C.6F6EE24A@mindspring.com> <20020409221536.A34659@blossom.cjclark.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Crist J. Clark" wrote: > > file is created in /etc; it does the right thing, if the > > symlink is read-only, though...). > > Exactly, you can't use symlinks with the passwd(1) and pwd_mkdb(8) > commands as they stand. The commands will bail when they try to create > a temporary file in /etc, /etc/pw.XXXXXX if /etc is read-only. If > /etc is not read-only, the symlinks will get removed and the files > actually written in /etc. "it does the right thing, if the symlink is read-only, though..." That includes if it's on a read-only FS... 8-). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message