Ignore:
Timestamp:
Jan 4, 2010, 11:31:53 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Fix a bug when isodir is / only when splitting it in iso_path and iso_mnt
File:
1 edited

Legend:

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

    r2475 r2506  
    586586            mr_asprintf(iso_path, "%s", "");
    587587        } else {
    588             mr_asprintf(iso_path, "%s", iso_tmp + strlen(iso_mnt));
     588            // If iso_mnt is only / then iso_path is the full dir
     589            // (the formula bellow doesn't work in this case)
     590            if (strcmp(iso_mnt, "/") == 0) {
     591                mr_asprintf(iso_path, "%s", iso_tmp);
     592            // else it's a part of iso_tmp
     593            } else {
     594                mr_asprintf(iso_path, "%s", iso_tmp + strlen(iso_mnt));
     595            }
    589596        }
    590597        mr_free(iso_mnt);
Note: See TracChangeset for help on using the changeset viewer.