Project

General

Profile

Bug #9066

ecl.php: Checking /config path is not working due to lack of trailing slash

Added by Jim Pingle over 2 years ago. Updated over 2 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Backup / Restore
Target version:
Start date:
10/25/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Default
Affected Version:
All
Affected Architecture:
All

Description

At source:src/etc/ecl.php#L59 the locations for the external config locator (ECL) script are defined, but /config does not end in a trailing slash.

Later when the locations are used at source:src/etc/ecl.php#L61 no slash is added between the path and target filename.

Thus, ecl.php checks for /config.xml and /configconfig.xml rather than /config/config.xml.

Associated revisions

Revision c688c59b (diff)
Added by Jim Pingle over 2 years ago

Add trailing slash to ECL check path for /config/. Fixes #9066

Revision 0fd2dd09 (diff)
Added by Jim Pingle over 2 years ago

Add trailing slash to ECL check path for /config/. Fixes #9066

(cherry picked from commit c688c59b47a3ce138ffe094794d01f1e6fcc00df)

History

#1 Updated by Jim Pingle over 2 years ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100

#2 Updated by Anonymous over 2 years ago

  • Status changed from Feedback to Resolved

Tested on pfSense-CE-memstick-ADI-2.4.5-DEVELOPMENT-amd64-20181103-0458, works as expected (config.xml in /config/ on a USB drive formatted FAT32, is recognized and restored on first boot after installing pfSense).

Also available in: Atom PDF