Virtual Machine Builder

vmbuilder erases current directory with option '-o -d .'

Reported by Riccardo Murri on 2012-11-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
VMBuilder
Undecided
Unassigned
vm-builder (Ubuntu)
Medium
Unassigned

Bug Description

Adding option '-o -d $(pwd)' to the 'vmbuilder' command line results in the current directory and its contents being completely erased; after a while the scripts fails anyway because `getcwd()` reports error.

This is a dangerous thing to do: 'vmbuilder' should explicitly refuse check that the argument to '-d' is *not* the current directory and refuse to start otherwise.

Also, I think that it should be better explained what the argument to '-d' is expected to be, and what is the combined effect of '-o' and '-d'.

Robie Basak (racb) on 2012-11-23
Changed in vm-builder (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Serge Hallyn (serge-hallyn) wrote :

Thanks, Riccardo, I'll push your fix to r. If you'd like to see it SRU'd, please either mark the releases to which you'd like it SRU'd, or list them in a comment.

Serge Hallyn (serge-hallyn) wrote :

Quoting Riccardo Murri (<email address hidden>):
> Thanks Serge, but what does "SRU" mean?

"Stable Release Update". I will merge your patch into the upstream bzr
tree and into the raring package. To get the fix into precise or quantal
requires an SRU. See https://wiki.ubuntu.com/StableReleaseUpdates for
more information.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package vm-builder - 0.12.4+bzr482-0ubuntu1

---------------
vm-builder (0.12.4+bzr482-0ubuntu1) raring; urgency=low

  * Merge from ~rmurri/vmbuilder/bug-1080744 (LP: #1080744)
 -- Serge Hallyn <email address hidden> Fri, 23 Nov 2012 15:00:10 -0600

Changed in vm-builder (Ubuntu):
status: Triaged → Fix Released
Riccardo Murri (rmurri) wrote :

Thanks! I do not think there is a need for SRU.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers