info-cvs
[Top][All Lists]
Advanced

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

Re: special patch for /CVS/entries permissions


From: Mark D. Baushke
Subject: Re: special patch for /CVS/entries permissions
Date: Sun, 04 Jun 2006 00:27:31 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

address@hidden writes:

> I am in the position of needing that the /CVS/entries file that is
> created on checkout to be group writable

Why do you believe you need this?

It is almost always a bad idea to share checked out trees amongst
multiple users.

> By default it is only owner writable and even if i manually chmod it,
> on the next checkout the generic permissions are restored.

umask 002

This is a *NIX command to change the default permissions of newly
created files and directories. Your default is probably a umask of '022'
You may use the 'umask' command without any arguments to see the current
value.

> I aim to change those generic permissions from 644 to 664

No need. The cvs command honors the user's umask.

> I am in the process of finding where exactly in the source code of cvs
> are these permissions defined , and i wonder if anyone has any ideea
> about this

It is not handled in the source code. It is part of how fopen() and
friends operate on a POSIX system with regard to the user's umask
setting for the current shell.

        -- Mark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (FreeBSD)

iD8DBQFEgotjCg7APGsDnFERAmUKAJ0fB/l43IbwL9davdDpvik8+f2hsQCgx0je
de0NPQOixF5me6RLBDjR7IA=
=avhr
-----END PGP SIGNATURE-----




reply via email to

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