[PATCH] Kamikaze ddns-scripts shell_get functions behaves incorrectly
with awk on x86/eglibc

Signed-off-by: Henning Meyer <[email protected]>

diff -Naur a/ddns-scripts/files/usr/lib/ddns/shell_get.sh
b/ddns-scripts/files/usr/lib/ddns/shell_get.sh
--- a/ddns-scripts/files/usr/lib/ddns/shell_get.sh
+++ b/ddns-scripts/files/usr/lib/ddns/shell_get.sh
@@ -87,7 +87,7 @@
        user_pass=$(echo $full_url | awk ' BEGIN {FS="@"}; { if( $0~/@/ &&
$1~/^[^\?\/]+:[^\?\/]+$/ ) print $1 }')
        host_and_args=""
        if [ -n "$user_pass" ]; then
-               host_and_args=$(echo $full_url | awk ' $0~gsub(/^...@]+@/, "") 
{print
$0}')
+               host_and_args=$(echo $full_url | awk ' BEGIN {FS="@"}; { if( 
$0~/@/
&& $1~/^[^\?\/]+:[^\?\/]+$/ ) print $2 }')
        else
                host_and_args="$full_url"
        fi

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to