[PC-BSD Commits] r7401 - pcbsd-projects/warden/scripts/backend

svn at pcbsd.org svn at pcbsd.org
Thu Aug 19 06:24:56 PDT 2010


Author: kris
Date: 2010-08-19 06:24:56 -0700 (Thu, 19 Aug 2010)
New Revision: 7401

Modified:
   pcbsd-projects/warden/scripts/backend/importjail.sh
Log:

Fixed bug in warden importing of jails



Modified: pcbsd-projects/warden/scripts/backend/importjail.sh
===================================================================
--- pcbsd-projects/warden/scripts/backend/importjail.sh	2010-08-18 18:12:29 UTC (rev 7400)
+++ pcbsd-projects/warden/scripts/backend/importjail.sh	2010-08-19 13:24:56 UTC (rev 7401)
@@ -45,12 +45,12 @@
 # Lets start importing the jail now
 ######################################################################
 
-if [ "${IFILE:0:1}" != "/" ]
+chk=`echo "${IFILE}" | cut -c 1-1`
+if [ "$chk" != "/" ]
 then
   IFILE="`pwd`/${IFILE}"
 fi
 
-
 # Extract the header info of the file
 cd ${WTMP}
 rm -rf tmp.$$ >/dev/null



More information about the Commits mailing list