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

svnserve: pre-lock arguments like &

From: <svn-sth_at_mnet-online.de>
Date: Mon, 23 Nov 2009 11:06:40 +0100

Hi,

i face the following problem in (1.3.2 and 1.6.6) svnserve based svn-servers.

i have defined pre-lock hooks.

if i (a user) try to lock a file named: 'testfile&testfile'

i get:

#> svn lock 'testfile&testfile'
svn: Lock blocked by pre-lock hook (exit code 1) with output:
hookname: pre-lock
rep: /home/.../hooktest
sh: testfile: command not found
=========================================================

Rep: /home/.../hooktest
Object: /testfile
User:

=========================================================
ERROR: is already locked by ...
=========================================================

if i call the hook standalone like:

svn.pre-lock.block_stealing.sh /home/.../hooktest 'testfile&testfile' user
=========================================================

Rep: /home/.../hooktest
Object: testfile&testfile
User: user

=========================================================

everything is fine.

if i call it like:

svn.pre-lock.block_stealing.sh /home/.../hooktest testfile&testfile user
[2] 5467
testfile: Command not found.
=========================================================

Rep: /home/.../hooktest
Object: testfile
User:

=========================================================

it does not work.

so i assume that svnserve is not starting the hook with right parameters,
i also assume that it is more like:

/bin/sh -c ... $1 $2 $3

instead of:

/bin/sh -c ... "$1" "$2" "$3"

can someone confirm on that.
Maybe it is already know, but i missed it during my search.

kind regards,
sth

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2423262

Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-11-23 12:03:59 CET

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

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