Changeset 309 in MondoRescue for trunk/mondo/mondo/common/libmondo-tools.c


Ignore:
Timestamp:
Jan 13, 2006, 12:23:00 AM (18 years ago)
Author:
bcornec
Message:

merge -r303:308 $SVN_M/branches/2.06

File:
1 edited

Legend:

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

    r276 r309  
    782782    assert_string_is_neither_NULL_nor_zerolength(partition);
    783783
    784     asprintf(&command, "df -m %s &> /dev/null", partition);
     784    asprintf(&command, "df -m -P %s &> /dev/null", partition);
    785785    if (system(command)) {
    786786        return (-1);
     
    788788    paranoid_free(command);
    789789
    790     asprintf(&command, "df -m %s | tail -n1 | tr -s ' ' '\t' | cut -f4",
     790    asprintf(&command, "df -m -P %s | tail -n1 | tr -s ' ' '\t' | cut -f4",
    791791             partition);
    792792    asprintf(&out_sz, call_program_and_get_last_line_of_output(command));
Note: See TracChangeset for help on using the changeset viewer.