Bug#382318: bug still exists

2007-02-11 Thread Mario Manno
anybody reading this?

-- 
Mario Manno [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#382318: updatejail problem

2006-08-10 Thread Mario Manno
Package: jailer 
Version: 0.4-8

I'm using jailer to create a chroot for pdns and pdns-recursor.

'/usr/sbin/updatejail /etc/jailer.conf pdns' gives the following error
message:
jail:  /var/chroot/pdns /var/chroot/pdns-recursor
config:  /etc/jailer.conf

/usr/sbin/updatejail: line 21: test: /var/chroot/pdns: binary operator
expected

After looking into updatejail i would suggest the following patch:

--- /usr/sbin/updatejail2003-10-28 02:09:53.0 +0100
+++ updatejail  2006-08-10 11:30:17.0 +0200
@@ -12,13 +12,13 @@
echo Usage: upratejail config.file jail identifier
 else

-   JAIL=`cat $1 | grep Root: | grep $2 | awk '{print $2}'`
+   JAIL=`cat $1 | grep Root: | grep $2$ | awk '{print $2}'`
echo jail:  $JAIL
echo config:  $1
read


-   if test -d $JAIL
+   if test -d $JAIL
then
cd $JAIL


-- 
Mario Manno [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]