File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
sdk_container/src/third_party/coreos-overlay/net-misc/openssh Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -232,6 +232,10 @@ insert_include() {
232
232
local src_config=" ${1} " options=" ${2} " includedir=" ${3} "
233
233
local name copy regexp_options regexp lineno comment_options
234
234
235
+ if [[ ! " ${includedir} " =~ ^/.* ]]; then
236
+ die " includir must be an absolute path (i.e, starting with /). Got: ${includedir} "
237
+ fi
238
+
235
239
name=${src_config##*/ }
236
240
copy=" ${T} /${name} "
237
241
cp -a " ${src_config} " " ${copy} " || die
@@ -251,7 +255,7 @@ insert_include() {
251
255
head -n " ${lineno} " " ${copy} " || die
252
256
cat << -EOF || die
253
257
# Make sure that all ${comment_options} options are below this Include!
254
- Include "${EPREFIX} / ${includedir} /*.conf"
258
+ Include "${EPREFIX}${includedir} /*.conf"
255
259
256
260
EOF
257
261
tail -n " +${lineno} " " ${copy} " || die
You can’t perform that action at this time.
0 commit comments