[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Read only file

From: Eric Siegerman
Subject: Re: Read only file
Date: Tue, 8 Oct 2002 13:36:24 -0400
User-agent: Mutt/1.2.5i

On Tue, Oct 08, 2002 at 09:03:23AM -0700, dd hh wrote:
> Why can't we have directories which has both read and write
> permission and in that directories files with read only
> permission and some writable files too?

The way CVS modifies a file in the repository is to:
  - Make a temporary copy that includes the changes.  (Since CVS
    only reads the original file, the lack of write permission
    doesn't get in its way, but it needs write permission on the
    parent directory in order to create the copy.)

  - Rename the copy back over top of the original.  (Again, the
    write permission that applies is on the parent directory, NOT
    on the file itself.)


|  | /\
|-_|/  >   Eric Siegerman, Toronto, Ont.        address@hidden
|  |  /
The acronym for "the powers that be" differs by only one letter
from that for "the pointy-haired boss".

reply via email to

[Prev in Thread] Current Thread [Next in Thread]