Page MenuHomeFreeBSD

libopencsd: Remove extra slashes
ClosedPublic

Authored by jlduran on Feb 1 2025, 4:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 22, 1:30 PM
Unknown Object (File)
Wed, Jul 22, 6:39 AM
Unknown Object (File)
Tue, Jul 21, 5:18 PM
Unknown Object (File)
Sun, Jul 19, 12:18 PM
Unknown Object (File)
Sun, Jul 19, 8:54 AM
Unknown Object (File)
Sun, Jul 19, 8:40 AM
Unknown Object (File)
Sat, Jul 18, 7:55 PM
Unknown Object (File)
May 25 2026, 6:38 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 Not Applicable
Unit
Tests Not Applicable