Ignore:
Timestamp:
Jun 25, 2006, 4:41:57 AM (14 years ago)
Author:
andree
Message:

Replaced all occurrences of egrep with 'grep -E' and of fgrep with
'grep -F' in mondo.
egrep and fgrep are usually just script wrappers around grep these
days which means additional overhead compared to calling grep with the
relevant option. Also, it appears that egrep and fgrep have been
deprecated by POSIX some time ago.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mondo/mondo/mondorestore/mondo-rstr-tools.c

    r558 r681  
    720720    }
    721721
    722     if (!run_program_and_log_output("mount | fgrep " MNT_CDROM, FALSE)) {
     722    if (!run_program_and_log_output("mount | grep -F " MNT_CDROM, FALSE)) {
    723723        log_msg(2, "mount_cdrom() - CD already mounted. Fair enough.");
    724724        paranoid_free(mount_cmd);
Note: See TracChangeset for help on using the changeset viewer.