Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

fix: Add extra check for etc path#312

Merged
hikinggrass merged 4 commits intoEVerest:mainfrom
chrizap:fix/correct-etc-path
Dec 2, 2025
Merged

fix: Add extra check for etc path#312
hikinggrass merged 4 commits intoEVerest:mainfrom
chrizap:fix/correct-etc-path

Conversation

@chrizap
Copy link
Copy Markdown
Contributor

@chrizap chrizap commented Nov 26, 2025

Problem
When using a custom prefix ending with "usr" (e.g., /extra/usr), the etc directory path was incorrectly resolved to /extra/usr/etc instead of /extra/etc.

An extra check has been added which uses parent path as root directory for etc.

Test Cases
Prefix: /usr
Got: /etc

Prefix: /extra/usr
Got: /extra/etc

Prefix: /opt/usr
Got: /opt/etc

Prefix: /usr/local
Got: /usr/local/etc

Prefix: /extra
Got: /extra/etc

Prefix: /opt/myapp
Got: /opt/myapp/etc

@chrizap chrizap marked this pull request as ready for review November 26, 2025 16:44
@hikinggrass hikinggrass self-assigned this Nov 26, 2025
@hikinggrass
Copy link
Copy Markdown
Member

Hi, I think you're missing a sign-off in your commit which means the DCO check fails, can you fix that? Apparently there's also a line that needs reformatting since clang-format complains :D thanks a lot!

@chrizap chrizap force-pushed the fix/correct-etc-path branch from 510feb2 to 6937c00 Compare November 27, 2025 07:48
chrskj and others added 4 commits December 2, 2025 12:04
Signed-off-by: Christofer Gilje Skjæveland <christofer.skjaeveland@zaptec.com>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
@hikinggrass hikinggrass merged commit 6b80129 into EVerest:main Dec 2, 2025
10 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants