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

Re: write-lock not removed with fsfs?

From: Bruce Christensen <bruckie_at_gmail.com>
Date: 2005-07-06 00:12:53 CEST

On 7/5/05, Ben Collins-Sussman <sussman@collab.net> wrote:
> Have you followed the 'svn+ssh checklist', in the box at the end of
> chapter 6?
> I can't tell if it's a umask problem or something... does it only
> happen to this one user?

I didn't know that that little section existed. It turns out that it
was a umask problem. Thanks for pointing me in the right direction.

For others who may have the same problem, I've included the wrapper
script that I wrote below.



=head1 NAME



    mv svnwrap /usr/bin
    cd /usr/bin
    for prog in svnadmin svnlook svnserve; do
      mv $prog $prog-dist
      ln -s svnwrap $prog


This script runs a program with umask 002.

Place this script in the same directory as svnserve, svnadmin, and svnlook.
Then symlink svnserve, svnadmin, and svnlook to this script, renaming the
original versions of those programs to svnserve-dist, svnadmin-dist, and
svnlook-dist. This script will set the umask to 002 and then run the -dist
version of whatever script it was called as.

For details on why this might be useful, see the "svn_ssh:// server checklist"
section at the end of chapter six of the Subversion book, available at
http://svnbook.red-bean.com/en/1.1/ch06s05.html as of this writing.

=head1 LICENSE

Copyright (c) 2005 by Bruce Christensen.

This script may be redistributed under the same terms as Subversion itself.

=head1 AUTHOR

Originally written by Bruce Christensen, <me at brucec dot net>.

Last modified 5 July 2005.


use strict;
use warnings;

use Cwd 'abs_path';
use File::Basename;
use File::Spec;

my $SUFFIX = "-dist";
my $MASK = 002;

umask $MASK;
my $cmd = File::Spec->catfile( dirname(abs_path($0)), basename($0) . $SUFFIX );
exec { $cmd } $cmd, @ARGV;

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 6 10:22:43 2005

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

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