Ignore:
Timestamp:
May 14, 2009, 3:10:51 AM (12 years ago)
Author:
Bruno Cornec
Message:
  • Cleanups
  • Fix test on return value for open (-1 is the right value to test not 0)
  • Improve asprintf usage for mountlist
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/mondorestore/mondo-prep.c

    r2192 r2205  
    15961596//          if (run_program_and_log_output(tmp, TRUE)) {
    15971597            file = open(drivename, O_WRONLY);
    1598             if (!file) {
     1598            if (file != -1) {
    15991599                sprintf(tmp,
    16001600                        "Warning - unable to open %s for wiping it's partition table",
Note: See TracChangeset for help on using the changeset viewer.