git: 65b71a21fc78 - stable/13 - libopencsd: Remove extra slashes
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Feb 2025 01:44:30 UTC
The branch stable/13 has been updated by jlduran:
URL: https://cgit.FreeBSD.org/src/commit/?id=65b71a21fc78eb7012b9a83bc84458288f9c197e
commit 65b71a21fc78eb7012b9a83bc84458288f9c197e
Author: Jose Luis Duran <jlduran@FreeBSD.org>
AuthorDate: 2025-02-04 14:15:37 +0000
Commit: Jose Luis Duran <jlduran@FreeBSD.org>
CommitDate: 2025-02-12 01:39:41 +0000
libopencsd: Remove extra slashes
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.
Reviewed by: imp, emaste
Approved by: emaste (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D48779
(cherry picked from commit bccaf0262dcab84be49c42cc6b7a81c279c44b62)
---
lib/libopencsd/Makefile | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/libopencsd/Makefile b/lib/libopencsd/Makefile
index b1a9f6f5a98b..bae8dea6e444 100644
--- a/lib/libopencsd/Makefile
+++ b/lib/libopencsd/Makefile
@@ -116,7 +116,7 @@ APIINCS= \
ocsd_c_api_types.h \
opencsd_c_api.h
-APIINCSDIR=${INCLUDEDIR}/opencsd/c_api/
+APIINCSDIR=${INCLUDEDIR}/opencsd/c_api
ETMV4INCS= \
etmv4_decoder.h \
@@ -129,7 +129,7 @@ ETMV4INCS= \
trc_pkt_proc_etmv4i.h \
trc_pkt_types_etmv4.h
-ETMV4INCSDIR=${INCLUDEDIR}/opencsd/etmv4/
+ETMV4INCSDIR=${INCLUDEDIR}/opencsd/etmv4
ETMV3INCS= \
etmv3_decoder.h \
@@ -140,7 +140,7 @@ ETMV3INCS= \
trc_pkt_proc_etmv3.h \
trc_pkt_types_etmv3.h
-ETMV3INCSDIR=${INCLUDEDIR}/opencsd/etmv3/
+ETMV3INCSDIR=${INCLUDEDIR}/opencsd/etmv3
PTMINCS= \
ptm_decoder.h \
@@ -151,7 +151,7 @@ PTMINCS= \
trc_pkt_proc_ptm.h \
trc_pkt_types_ptm.h
-PTMINCSDIR=${INCLUDEDIR}/opencsd/ptm/
+PTMINCSDIR=${INCLUDEDIR}/opencsd/ptm
STMINCS= \
stm_decoder.h \
@@ -162,7 +162,7 @@ STMINCS= \
trc_pkt_proc_stm.h \
trc_pkt_types_stm.h
-STMINCSDIR=${INCLUDEDIR}/opencsd/stm/
+STMINCSDIR=${INCLUDEDIR}/opencsd/stm
INCSGROUPS=INCS APIINCS ETMV3INCS ETMV4INCS PTMINCS STMINCS