Changeset 812 in MondoRescue for branches


Ignore:
Timestamp:
Sep 23, 2006, 9:19:17 AM (18 years ago)
Author:
Bruno Cornec
Message:

Fix a bug whete /tmp was hardcoded for ntfsclone usage, creating a problem for an attempt to use mondo with a live CD. (reported by Dale Tronrud <det102_at_uoxray.uoregon.edu>)

Location:
branches/stable/mondo/mondo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/common/libmondo-archive.c

    r693 r812  
    22222222            delete_when_done = TRUE;
    22232223        } else {
    2224 // Call ntfsclone (formerly partimagehack) if it's a /dev entry (i.e. a partition to be imaged)
     2224            // Call ntfsclone (formerly partimagehack) if it's a /dev entry
     2225            // (i.e. a partition to be imaged)
    22252226            log_msg(2, "bigfile_fname = %s", bigfile_fname);
    22262227            use_ntfsprog = FALSE;
     
    22312232                        "Calling ntfsclone in background because %s is an NTFS partition",
    22322233                        bigfile_fname);
    2233                 sprintf(sz_devfile, "/tmp/%d.%d.000",
     2234                sprintf(sz_devfile, "%s/%d.%d.000",
     2235                        bkpinfo->tmpdir,
    22342236                        (int) (random() % 32768),
    22352237                        (int) (random() % 32768));
  • branches/stable/mondo/mondo/mondorestore/mondo-restore.c

    r804 r812  
    17741774                "Calling ntfsclone in background because %s is a /dev entry",
    17751775                outfile_fname);
    1776         sprintf(sz_devfile, "/tmp/%d.%d.000", (int) (random() % 32768),
     1776        sprintf(sz_devfile, "%s/%d.%d.000",
     1777                bkpinfo->tmpdir,
     1778                (int) (random() % 32768),
    17771779                (int) (random() % 32768));
    17781780        mkfifo(sz_devfile, 0x770);
Note: See TracChangeset for help on using the changeset viewer.