IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27997


Ignore:
Timestamp:
May 18, 2010, 11:41:57 AM (16 years ago)
Author:
eugene
Message:

do not print a message if the .foorc file is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/lib.shell/startup.c

    r16472 r27997  
    124124    if (LOAD_RC && !is_script) {
    125125      rcfile = get_variable ("RCFILE");
    126       sprintf (line, "input %s/%s", home, rcfile);
    127       status = command (line, &outline, TRUE);
    128       if (outline != (char *) NULL) free (outline);
     126      if (rcfile && check_file_access (rcfile, FALSE, FALSE, FALSE)) {
     127        sprintf (line, "input %s/%s", home, rcfile);
     128        status = command (line, &outline, TRUE);
     129        if (outline != (char *) NULL) free (outline);
     130        if (status) {
     131          gprint (GP_LOG, "loaded file %s\n", argv[1]);
     132        }         
     133      }
    129134      if (rcfile) free (rcfile);
    130135    }
Note: See TracChangeset for help on using the changeset viewer.