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

Bug or Feature: pre-lock parameters with &

From: <svn-sth_at_mnet-online.de>
Date: Fri, 20 Nov 2009 10:26:50 +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/pfreladm/powerflow/svnrep/tools/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/pfreladm/powerflow/svnrep/tools/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, so i will enter it as bug.
Maybe it is already know, but i missed it during my search.

kind regards,
sth

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-11-20 10:29:02 CET

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.