Changeset 2522


Ignore:
Timestamp:
Jan 4, 2010, 8:22:26 PM (10 years ago)
Author:
bruno
Message:

Re-apply the fix of [2506] broken by older patches applied after :-(

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-tools.c

    r2518 r2522  
    590590            mr_asprintf(&iso_path, "%s", "");
    591591        } else {
    592             mr_asprintf(&iso_path, "%s", iso_tmp + strlen(iso_mnt));
     592            // If iso_mnt is only / then iso_path is the full dir
     593            // (the formula bellow doesn't work in this case)
     594            if (strcmp(iso_mnt, "/") == 0) {
     595                mr_asprintf(&iso_path, "%s", iso_tmp);
     596            // else it's a part of iso_tmp
     597            } else {
     598                mr_asprintf(&iso_path, "%s", iso_tmp + strlen(iso_mnt));
     599            }
    593600        }
    594601        mr_free(iso_tmp);
     602        mr_free(iso_mnt);
    595603
    596604        mr_asprintf(&tmp, "%s/ISODIR", bkpinfo->tmpdir);
Note: See TracChangeset for help on using the changeset viewer.