Opened 19 years ago

Last modified 19 years ago

#90 closed defect

mondoarchive fails when using space in the prefix — at Initial Version

Reported by: caogdin@… Owned by: Bruno Cornec
Priority: normal Milestone: 2.2.1
Component: mondo Version: 2.2.0
Severity: major Keywords:
Cc:

Description

I intentionally introduced a space into the filename of the destination of the image being written to disk. The command accepted by mondoarchive is

mondoarchive -OViFNK0 -s 4200m -S /backup/scratch -T /backup/temp -d

/backup -l LILO -f /dev/hdc \

-p Mondo- (test) -Birch-061025@2031 -E /backup

As the following information shows, "Mondo- (test) -Birch-061025@2031" is accepted as a whole and proper file name, because it's quoted in the invocation of mondoarchive.

When it comes time for mondoarchive to write the first ISO out, it invokes mkisofs, but the file name is not properly single-quoted, resulting the following error reported on the console:

sh: -c: line 0: syntax error near unexpected token `(' sh: -c: line 0: `mkisofs -no-emul-boot -b isolinux.bin -boot-load-size 4 -boot-info-table -c boot.cat -o /backupMondo- (test) -Birch-061025@… -J -r -p MondoRescue -publisher www.mondorescue.org -A Mondo_Rescue_GPL -V 1 . >> /var/log/mondo-archive.log 2>> /var/log/mondo-archive.log' Call to mkisofs to make ISO (ISO #1) ...failed ---promptdialogYN---1--- Failed to burn ISO #1. Retry?

Because the parameter to the -o option is not single-quoted to treat it as a unit, the spaces in the filename break the paramter after ...Mondo-, and the rest of the filename, (test... is attempted to be interpreted as another option.

That command could more robustly be coded as

mkisofs -no-emul-boot -b isolinux.bin -boot-load-size 4

-boot-info-table -c boot.cat -o '/backupMondo- (test) -Birch-061025@…' \

-J -r -p MondoRescue -publisher www.mondorescue.org -A

Mondo_Rescue_GPL -V 1 . >> /var/log/mondo-archive.log 2>> /var/log/mondo-archive.log (I quoted the argument to -o)

Change History (0)

Note: See TracTickets for help on using tickets.