From owner-freebsd-questions Wed Oct 3 13:52:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by hub.freebsd.org (Postfix) with ESMTP id 5753A37B401 for ; Wed, 3 Oct 2001 13:52:48 -0700 (PDT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by cactus.fi.uba.ar (8.11.3/8.9.3) with ESMTP id f93Kp9t29033; Wed, 3 Oct 2001 17:51:09 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Wed, 3 Oct 2001 17:51:09 -0300 (ART) From: Fernando Gleiser To: Tim Singletary Cc: Subject: Re: hard link and schg flag ? In-Reply-To: <15291.26813.915555.640978@macaw.hq.vetinsite.com> Message-ID: <20011003174756.D20900-100000@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 3 Oct 2001, Tim Singletary wrote: > > if the inmutable flags afects the inode rather than the contents of the file > > this is a feature, since creating a new hardlink increases the link count > > I suspect this is correct. But I can't find good documentation for > this. From /sys/ufs/ufs/ufs_vnops.c : if (ip->i_flags & (IMMUTABLE | APPEND)) { error = EPERM; goto out1; } So it is a feature. Time to fill a PR for the man page. Fer > > In particular, ln fails with `Operation not permitted'. I haven't > looked at the source code, but I'll guess this is because link() > failed with EPERM. But `man 2 link' says that EPERM occurs when > `The file named by _name1_ is a directory', and that's clearly > not what's happening here! > > tim > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message