Changeset 153 in MondoRescue for branches/2.05/mondo


Ignore:
Timestamp:
Dec 7, 2005, 12:51:40 PM (18 years ago)
Author:
andree
Message:

Added check for sudo when writing DVDs and terminate if sudo used
because growisofs does't support sudo.

File:
1 edited

Legend:

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

    r148 r153  
    705705                    mondo_mkisofs_sz,
    706706                    extra_cdrom_params, bkpinfo->media_device);
     707        }
     708        if (getenv ("SUDO_COMMAND")) {
     709            fatal_error("Can't write DVDs as sudo because growisofs doesn't support this - see the growisofs manpage for details.");
    707710        }
    708711        log_msg(2, "call_make_iso (DVD res) is ... %s",
Note: See TracChangeset for help on using the changeset viewer.