Skip to content

Commit c927a7a

Browse files
committed
net-misc/openssh: fix duplicate slash
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
1 parent 29c3227 commit c927a7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdk_container/src/third_party/coreos-overlay/net-misc/openssh/openssh-9.5_p1.ebuild renamed to sdk_container/src/third_party/coreos-overlay/net-misc/openssh/openssh-9.5_p1-r1.ebuild

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,10 @@ insert_include() {
232232
local src_config="${1}" options="${2}" includedir="${3}"
233233
local name copy regexp_options regexp lineno comment_options
234234

235+
if [[ ! "${includedir}" =~ ^/.* ]]; then
236+
die "includir must be an absolute path (i.e, starting with /). Got: ${includedir}"
237+
fi
238+
235239
name=${src_config##*/}
236240
copy="${T}/${name}"
237241
cp -a "${src_config}" "${copy}" || die
@@ -251,7 +255,7 @@ insert_include() {
251255
head -n "${lineno}" "${copy}" || die
252256
cat <<-EOF || die
253257
# Make sure that all ${comment_options} options are below this Include!
254-
Include "${EPREFIX}/${includedir}/*.conf"
258+
Include "${EPREFIX}${includedir}/*.conf"
255259
256260
EOF
257261
tail -n "+${lineno}" "${copy}" || die

0 commit comments

Comments
 (0)