Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ddns-scripts: Adjust descriptions in Makefile for apk (no parentheses inside double quotes) #25293

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

hnyman
Copy link
Contributor

@hnyman hnyman commented Nov 10, 2024

Having both double quotes and parentheses in package description may lead into trouble with apk, if parentheses are located so that they get passed "outside" the quoted parameter, and get interpreted as a token for shell.

Example, where quoted text containing parentheses "option param_opt(Optional Parameter)" gets handled wrong, as the 'opening quote' is actually the closing quote from shell perspective and thus ( is seen as a shell delimiter:

 ash: -c: line 1: syntax error near unexpected token `('
 bash: -c: line 1: `/OpenWrt/e8450/staging_dir/host/bin/fakeroot
 /OpenWrt/e8450/staging_dir/host/bin/apk mkpkg --info "name:ddns
 -scripts-pdns" --info "version:2.8.2-r51" --info "description:D
 ynamic DNS Client scripts extension for "PowerDNS" via API. It
 requires: "option param_opt(Optional Parameter)" to be a valid

Avoid that by using single quotes in the detailed descriptions in Makefile.

I am doing this change as a PR to document this behavior better for future.

Having both double quotes and parentheses in package
description may lead into troublewith apk, if parentheses
are located so that they get passed "outside" the quoted
parameter, and get interpreted as a token for shell.

Example:
 ash: -c: line 1: syntax error near unexpected token `('
 bash: -c: line 1: `/OpenWrt/e8450/staging_dir/host/bin/fakeroot
 /OpenWrt/e8450/staging_dir/host/bin/apk mkpkg --info "name:ddns
 -scripts-pdns" --info "version:2.8.2-r51" --info "description:D
 ynamic DNS Client scripts extension for "PowerDNS" via API. It
 requires: "option param_opt(Optional Parameter)" to be a valid

Avoid that by using single quotes in the detailed descriptions.

Signed-off-by: Hannu Nyman <[email protected]>
@hnyman hnyman merged commit b74ca8f into openwrt:master Nov 10, 2024
13 checks passed
@hnyman hnyman deleted the ddns branch November 10, 2024 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant