[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Re: Committing file makes it unreadable by group and other

From: Hucker, Bob <bhucker_at_bayareanewsgroup.com>
Date: Fri, 30 May 2008 10:44:41 -0700

Thanks for the quick responses. Some answers:

1. The directories I'm using are readable by group and other, so the permissions don't seem to be inherited. Maybe they should be, though, and maybe they would be if I knew which Windows security thing to change.

2. I don't see this as a cygwin issue. I am checking out and committing files from Windows Explorer only. I am using cygwin only to observe the problem and temporarily solve it after each file is committed.

3. The umask suggestion was a good one. I am familiar with umask but never had thought to use it with cygwin. I tried changing umask from 0 to 2, but that had no effect on this problem. Files coming from the repository still were not readable by group or other.

So I'd love to hear more suggestions. By the way, when I once complained about the "reverse logic" of umask, a friend offered to write me a book titled "You and Umask."

--Bob

-----Original Message-----
From: news on behalf of Dave Lawrence
Sent: Fri 5/30/2008 8:00 AM
To: users_at_tortoisesvn.tigris.org
Subject: Re: Committing file makes it unreadable by group and other
 
Jean-Marc van Leerdam wrote:
> Hi Bob,
>
> On 30/05/2008, Hucker, Bob <bhucker_at_bayareanewsgroup.com> wrote:
>> When I commit a file, it sets the permissions on my local copy (on a
>> Windows file system) in such a way that cygwin shows the file as not
>> readable by group or other. Why?

Is it that the permissions are inherited from the parent directory?

> The file handling is done by the subversion libraries, not TSVN
> itself. When using cygwin, you should also be using a cygwin
> subversion client. Mixing a native windows client (TSVN) with cygwin
> can give you exactly the issue you are reporting.

I disagree. By that argument you should be using a Cygwin text editor
aswell. People use Cygwin so they can mix Unix tools (typically gcc
etc) and Windows tools (typically editors, version control etc) in the
same environment. We use TortoiseSVN, a Windows text editor, and a
Windows difference viewer, but all our build process happens in Cygwin.
  If I wanted a 100% unix environment I'd use Linux.

>> I constantly have to issue the command "chmod -R og+r <dirname>" to get
>> my permissions right so that my local Apache server on the PC will read
>> the files correctly.
>>
>
> Looks like files are being created with a 'rwx------' permission
> instead of 'rwxr--r--'. In unix you control this with the UMASK
> environment variable. I have no experience with cygwin, so I don't
> know if there is such a thing as a umask equivalent available. But if
> there is, you should make sure that it is set to default to group and
> world readable
>
My files are always checked out with drwxr-xr-x+ using TSVN. Note that
if you do use the Cygwin command line client for whatever reason (and
this should occur in a *different* working copy) you will need to set
svn:executable on executable files or Cygwin will not check them out
with executable permissions.

> HTH
>
> Regards,
>
> Jean-Marc
>
> ----------------
> ___
> // \\ @@ "De Chelonian Mobile"
> / \_/ \/._) TortoiseSVN
> <\_/_\_/ / The coolest Interface to (Sub)Version Control
> /_/ \_\ Check out http://tortoisesvn.net

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org

Received on 2008-05-30 19:45:16 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.