[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug report]When archive jail, print escape sequence "\n"



Hi.

When use ezjail-admin command with archive option.

I found "\n" in error string.
So I check ezjail-admin.

I applyed this.
echo -e <- "-e" option.
*****************************************************************
[tsubasa@server /root/ezjail-3.3]$ diff -u ezjail-admin ezjail-admin.new
--- ezjail-admin 2013-04-20 11:00:49.000000000 +0900
+++ ezjail-admin.new 2013-05-02 02:11:22.000000000 +0900
@@ -1258,7 +1258,7 @@
     [ "${ezjail_imagesize}" ] && detach_images keep

     # An error on a jail not running is bad
-    [ ${ezjail_paxresult} -eq 0 -o "${ezjail_force}" ] || echo
"Warning: Archiving jail ${ezjail_name} was not completely
successful.\n  Please refer to the output above for problems the
archiving tool encountered.\n  You may ignore reports concerning
setting access and modification times.\n  You might want to check and
remove ${ezjail_archive}."
+    [ ${ezjail_paxresult} -eq 0 -o "${ezjail_force}" ] || echo -e
"Warning: Archiving jail ${ezjail_name} was not completely
successful.\n  Please refer to the output above for problems the
archiving tool encountered.\n  You may ignore reports concerning
setting access and modification times.\n  You might want to check and
remove ${ezjail_archive}."

     # When archiving a running jail, some errors might occur
     [ ${ezjail_paxresult} -eq 0 ] || echo "Warning: Archiving jail
${ezjail_name} was not completely successful. For a running jail this
is not unusual."
*****************************************************************

Best regard.