Page MenuHomeFreeBSD

libopencsd: Remove extra slashes
ClosedPublic

Authored by jlduran on Feb 1 2025, 4:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 3, 11:15 AM
Unknown Object (File)
Fri, Oct 31, 3:44 PM
Unknown Object (File)
Sun, Oct 26, 5:55 PM
Unknown Object (File)
Sat, Oct 25, 5:09 PM
Unknown Object (File)
Wed, Oct 22, 10:28 AM
Unknown Object (File)
Oct 3 2025, 10:57 PM
Unknown Object (File)
Sep 24 2025, 12:12 AM
Unknown Object (File)
Sep 8 2025, 4:35 AM
Subscribers

Details

Summary

Remove extra slashes that end up in the metalog. These double slashes
can produce an invalid specification file if there are subdirectories
down the hierarchy when sorted.

For example, consider the following metalog excerpt:

./base/aaa type=dir
./base//aaa/bbb type=dir

If sorted, would turn out:

./base//aaa/bbb type=dir
./base/aaa type=dir

Apparently missing the ./base/aaa directory in the specification.

Luckily here are no subdirectories.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 62190
Build 59074: arc lint + arc unit