Ticket #16275: patch-base-2.2b1-ipr-ipr_file.c.diff

File patch-base-2.2b1-ipr-ipr_file.c.diff, 879 bytes (added by Jacobus.Geluk@…, 16 years ago)
  • ../base-2.2b1/ipr/ipr_file.c

    old new  
    579579if (ipr_file_exists (filename))
    580580    icl_shortstr_cpy (fullname, filename);
    581581else {
     582        icl_shortstr_cat (workname, "/opt/local/etc/") ;
     583        icl_shortstr_cat (workname, filename) ;
     584        if (ipr_file_exists (workname)) {
     585                icl_shortstr_cpy (fullname, workname) ;
     586                rc = 0 ;
     587        } else {
    582588    rc = -1;                        //  Assume we don't find the file
    583589    while (pathptr && *pathptr) {
    584590        length = strcspn (pathptr, PATHSEP);
     
    599605            break;
    600606        }
    601607    }
     608        }
    602609}
    603610#if (defined (BASE_TRACE)   || defined (BASE_TRACE_IPR_FILE)   || defined (BASE_TRACE_IPR_FILE_WHERE))
    604611    icl_trace_record (NULL, ipr_file_dump, 0x10000 + 6);