[OpenWrt-Devel] Stubby is broken

e9hack e9hack at gmail.com
Wed Feb 26 11:34:01 EST 2020


Am 25.02.2020 um 22:41 schrieb Rosen Penev:
> I don't see any of my init script changes breaking this.
> 
> Does this work?
> --- a/net/stubby/files/stubby.init
> +++ b/net/stubby/files/stubby.init
> @@ -205,7 +205,7 @@ generate_config()
>      }
> 
>      config_foreach handle_resolver resolver
> -} > "$config_file"
> +}
> 
>  start_service() {
>      local config_file_tmp
> @@ -223,7 +223,7 @@ start_service() {
>          cp "$stubby_manual_config" "$stubby_config"
>      else
>          config_file_tmp="$stubby_config.$$"
> -        generate_config "$config_file_tmp"
> +        generate_config "$config_file_tmp" > "$config_file"
>          mv "$config_file_tmp" "$stubby_config"
>      fi
>      chmod 0644 "$stubby_config"

Variable config_file is a local variable in function generate_config. Outside they is empty.

Regards,
Hartmut

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list