lkml.org 
[lkml]   [1996]   [Dec]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Proposal: restrict link(2)

On Fri, 13 Dec 1996, Theodore Y. Ts'o wrote:

> Date: Fri, 13 Dec 1996 02:43:11 -0500 (EST)
> From: Dan Merillat <Dan@merillat.org>
>
> Besides, by link()ing to a file you change it. And if you don't have the
> ability to write to it, you should _NOT_ be able to change a file.
> symlinks don't count, as they are just pointers to a file that may, or may
> not exist. Hard links become the file itself.
>
> Incorrect. Being able to link to a file does not mean you can change
> it.

No, you can't change the data blocks. But you _will_ change the inode by
incrementing the link count.

I'm not saying that changing the link count is wrong by itself, as you can
also change the atime by simply reading the file..


Ionut

--
It is better to keep your mouth shut and be thought a fool,
than to open it and remove all doubt.


\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.123 / U:0.972 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site