Ticket #14658: 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@…, 17 years ago) |
---|
-
../base-2.2b1/ipr/ipr_file.c
old new 579 579 if (ipr_file_exists (filename)) 580 580 icl_shortstr_cpy (fullname, filename); 581 581 else { 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 { 582 588 rc = -1; // Assume we don't find the file 583 589 while (pathptr && *pathptr) { 584 590 length = strcspn (pathptr, PATHSEP); … … 599 605 break; 600 606 } 601 607 } 608 } 602 609 } 603 610 #if (defined (BASE_TRACE) || defined (BASE_TRACE_IPR_FILE) || defined (BASE_TRACE_IPR_FILE_WHERE)) 604 611 icl_trace_record (NULL, ipr_file_dump, 0x10000 + 6);