Changeset 107 in MondoRescue for trunk/mondo/mondo


Ignore:
Timestamp:
Nov 6, 2005, 4:35:21 AM (18 years ago)
Author:
andree
Message:

Fixed command line parsing so that option '-C' (CD streaming) takes
an argument for the media write speed to bring things inline with the
manpage and the behaviour for other write options.

See also Debian bug #269072.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mondo/mondo/mondoarchive/mondo-cli.c

    r87 r107  
    494494        }
    495495        if (flag_set['C']) {
    496             bkpinfo->cdrw_speed = 2;
     496            bkpinfo->cdrw_speed = atoi(flag_val['C']);
     497            if (bkpinfo->cdrw_speed < 1) {
     498                fatal_error
     499                    ("You specified a silly speed for a CD-R[W] drive");
     500            }
    497501            if (!flag_set['L']) {
    498502                log_to_screen
     
    963967    while ((opt =
    964968            getopt(argc, argv,
    965                    "0123456789A:B:CDE:FHI:J:K:LNOP:QRS:T:VWb:c:d:ef:gik:l:mn:op:rs:tuw:x:"))
     969                   "0123456789A:B:C:DE:FHI:J:K:LNOP:QRS:T:VWb:c:d:ef:gik:l:mn:op:rs:tuw:x:"))
    966970           != -1) {
    967971        if (opt == '?') {
Note: See TracChangeset for help on using the changeset viewer.