bug-cvs
[Top][All Lists]
Advanced

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

RE: cvs not ignoring permissions


From: Paul Shields
Subject: RE: cvs not ignoring permissions
Date: Wed, 30 Jul 2003 18:07:04 -0400

That's weird.
My umask command was in my .bash_profile on the cvs server; but it must go in 
the .bashrc

The workaround does the job. 
Thanks,
Paul Shields

-----Original Message-----
From: Mark D. Baushke [mailto:mdb@cvshome.org]
Sent: July 30, 2003 5:28 PM
To: Paul Shields
Cc: bug-cvs@gnu.org
Subject: Re: cvs not ignoring permissions 


Hi Paul,

Okay, I think I see the problem now.

Basically, when you do a commit an there is an keyword expansion that
needs to take place, the server needs to do a checkout of the file in
its copy of the repository on the server and then send that file back to
the client.

The problem is that your umask on the server is being used over what you
have on the client.

Here is code in server.c that mentions the problem:

            if (mode == (mode_t) -1)
            {
                /* FIXME: When we check out files the umask of the
                   server (set in .bashrc if rsh is in use) affects
                   what mode we send, and it shouldn't.  */
                mode = sb.st_mode;
            }

I am not sure of the correct fix for this problem at present.

For your environment, you could modify your .bashrc (or the rc file for
whatever shell you use) to do a 'umask 002' ... that would work around
the problem for now.

        Good luck,
        -- Mark




reply via email to

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