Ignore:
Timestamp:
Jan 3, 2006, 4:59:29 PM (18 years ago)
Author:
bcornec
Message:

more cat commands removed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.06/mondo/mondo/common/libmondo-devices.c

    r273 r275  
    24342434    strcpy(exclude_these_devices,
    24352435           call_program_and_get_last_line_of_output
    2436            ("cat /etc/fstab | tr -s '\t' ' ' | grep -E '( (coda|ncpfs|nfs|smbfs|cifs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));
     2436           ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));
    24372437    sprintf(result_sz, "%s %s", exclude_these_directories,
    24382438            exclude_these_devices);
     
    24642464    strcpy(exclude_these_devices,
    24652465           call_program_and_get_last_line_of_output
    2466            ("cat /etc/fstab | tr -s '\t' ' ' | grep -E '( (coda|ncpfs|nfs|smbfs|cifs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));
     2466           ("tr -s '\t' ' ' < /etc/fstab | grep -E '( (coda|ncpfs|nfs|smbfs|cifs) )' | cut -d' ' -f1 | tr -s '\n' ' ' | awk '{print $0;}'"));
    24672467    sprintf(result_sz, "%s", exclude_these_directories);
    24682468    paranoid_free(exclude_these_devices);
Note: See TracChangeset for help on using the changeset viewer.