projects
/
snf-image
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
01cdf11
)
Fix a dangerous-use-of-xargs bug in create
v0.1
author
Nikos Skalkotos
<skalkoto@grnet.gr>
Thu, 13 Oct 2011 11:09:35 +0000
(14:09 +0300)
committer
Nikos Skalkotos
<skalkoto@grnet.gr>
Thu, 13 Oct 2011 11:15:33 +0000
(14:15 +0300)
snf-image-host/create
patch
|
blob
|
history
diff --git
a/snf-image-host/create
b/snf-image-host/create
index
b9bbdb0
..
83dbf4c
100755
(executable)
--- a/
snf-image-host/create
+++ b/
snf-image-host/create
@@
-119,7
+119,7
@@
if [ $? -ne 0 ]; then
fi
# Read the first line. This will remove \r and \n chars
-result=$(sed 's|\r||g' "$result_file" | xargs echo)
+result=$(sed 's|\r||g' "$result_file" | head -1)
if [ "x$result" != "xSUCCESS" ]; then
log_error "Helper VM returned error"