<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
After deeper tests, quotes are not the issue, it is just that if
target contains a directory path, it is not created, and cp fails.<br>
<br>
A "mkdir -p basename_of_target" would solve the issue and allow to
copy files in a subdirectory.<br>
<br>
Current code only allows the renaming of a file, not copying it in
sub-directories of the CDROM.<br>
<br>
Olivier<br>
<br>
<div class="moz-cite-prefix">On 03/03/2014 02:33 PM, Olivier Sallou
wrote:<br>
</div>
<blockquote cite="mid:53148497.2000304@irisa.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi,<br>
I made some tests and looking at code of tm_context, I think there
is a possible bug:<br>
(src/tm_mad/common/context)<br>
<br>
In code:<br>
<br>
for f in "${SRC[@]}"; do<br>
case "$f" in<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://*">http://*</a>)<br>
exec_and_set_error "$WGET -P $ISO_DIR $f" "Error
downloading $f"<br>
;;<br>
*)<br>
if echo "$f" | grep -q ':'; then<br>
target=$(echo "$f"|cut -d':' -f2-)<br>
target="'$target'"<br>
f=$(echo "$f"|cut -d':' -f1)<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<br>
<br>
If a target is set with something like : f = /path_to_my_<a
moz-do-not-send="true" class="moz-txt-link-freetext"
href="file:subdir/my_file">file:subdir/my_file</a><br>
<br>
target is then set with quotes, in the above example
target='subdir/myfile'<br>
<br>
Following command is:<br>
<br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
exec_and_set_error "cp -R $f $ISO_DIR/$target" \<br>
"Error copying $f to $ISO_DIR"<br>
<br>
The cp will fail: cp -R /path_to_my_file
$ISO_DIR/'subdir/myfile'<br>
There are quotes in cp target path.<br>
<br>
Am I correct. I made a try and it failed, but I wonder if it is
code part or an other error I made somewhere else.<br>
<br>
Olivier<br>
<br>
<pre class="moz-signature" cols="72">--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95
gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
</pre>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Olivier Sallou
IRISA / University of Rennes 1
Campus de Beaulieu, 35000 RENNES - FRANCE
Tel: 02.99.84.71.95
gpg key id: 4096R/326D8438 (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335 D26D 78DC 68DB 326D 8438
</pre>
</body>
</html>