Page MenuHomeFreeBSD

libopencsd: Remove extra slashes
ClosedPublic

Authored by jlduran on Feb 1 2025, 4:21 AM.
Tags
None
Referenced Files
F168252966: D48779.diff
Thu, Aug 27, 4:57 AM
Unknown Object (File)
Sat, Aug 22, 9:32 AM
Unknown Object (File)
Sat, Aug 22, 2:26 AM
Unknown Object (File)
Thu, Aug 13, 8:37 PM
Unknown Object (File)
Thu, Aug 13, 7:19 PM
Unknown Object (File)
Wed, Aug 12, 2:57 PM
Unknown Object (File)
Wed, Aug 12, 12:53 PM
Unknown Object (File)
Wed, Aug 12, 12:35 PM
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