/etc/rc.d/jail question

Shizuka Kudo shizukakudo_99 at yahoo.com
Fri Apr 18 23:59:25 PDT 2003


I have tried the newly included /etc/rc.d/jail and found that ${_jail_name} was never initialized.
 I believe it is a typo, and the following patch works for me.

@@ -51,7 +51,7 @@
                eval jail_rootdir=\"\$jail_${_jail}_rootdir\"
                eval jail_hostname=\"\$jail_${_jail}_hostname\"
                eval jail_ip=\"\$jail_${_jail}_ip\"
-               eval jail_exec=\"\$jail_${_jail_name}_exec\"
+               eval jail_exec=\"\$jail_${_jail}_exec\"
                [ -z ${jail_exec} ] && jail_exec="/bin/sh /etc/rc"

                jail ${jail_rootdir} ${jail_hostname} ${jail_ip} ${jail_exec}



__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com


More information about the freebsd-current mailing list