Ticket #65 (assigned defect)

Opened 11 months ago

Last modified 7 months ago

Q doesn't correctly handle floppy disk images with spaces in their path name

Reported by: kju Assigned to: mike (accepted)
Priority: normal Milestone: Q₂-0.9.1aX
Component: Q Control Version: Q-0.9.0a89
Severity: minor Keywords:
Cc:

Description

Steps to reproduce:

  1. Edit any virtual machine.
  2. In the Hardware tab, go to Floppy -> Choose Imagefile...
  3. Choose a floppy image located in a folder with spaces somewhere in its pathname (create with Tools -> Create new Diskimage... if necessary).
  4. Boot the system.

Results:

Qemu unexpectedly quit

Error: invalid option -- '-'

and the system fails to start. Advanced -> QEMU Arguments is filled in with the pathname of the floppy after the spaces.

I'd guess this is happening because spaces aren't being quoted when Q calls qemu. I haven't looked at the source code, but maybe Q should shell out to qemu by passing arguments in an array? (Haven't checked if Q does that, but it seems that that may solve this problem).

Change History

10/05/07 22:20:02 changed by mike

  • status changed from new to assigned.

01/14/08 16:22:55 changed by mike

  • milestone changed from Q-0.9.0aX to Q-0.9.1aX.

01/14/08 16:23:54 changed by mike

  • milestone changed from Q-0.9.1aX to Q₂-0.9.1aX.