From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 95362 invoked by alias); 28 Sep 2018 14:22:36 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Received: (qmail 95345 invoked by uid 89); 28 Sep 2018 14:22:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=alert, ISP, isp, diverse X-HELO: mail-pg1-f170.google.com Received: from mail-pg1-f170.google.com (HELO mail-pg1-f170.google.com) (209.85.215.170) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 28 Sep 2018 14:22:34 +0000 Received: by mail-pg1-f170.google.com with SMTP id d19-v6so4617242pgv.1 for ; Fri, 28 Sep 2018 07:22:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JdyA2Iz3I5WFsboFelkR/nkQhxy8CmubjPsC34N2c60=; b=nN6fyF5vovdERFvNXjvrRnnI+V8mQ6BZ7X05fBd1wlDojBoL2pg1RKmu9HsXEDdPx8 bOlzoNj4jF8qNGXHwAFvPtBg54ZKMBxKbtato/g54Gzc11aPX2W51qFYRcYSR11q8Dge 7UcKi9PxPl888HFk6IeJHnft6kIzfEmA+5REAnIpvK+xgOvzeU+dcql84OTP8oXKlAXJ C4hSczZSwzcGyJdRAjvq48iBog2e0LYu8Tb+beO+XIJkdMuNPgcpBIBa5QDPnCCK4gDk NsjsMqqfr4Xd9EbnWv/yVwseN0IxML//wJc7nNuVgmMH1BONFYyCH4rFTyFiMw2bow32 pwpw== Return-Path: Received: from [192.168.0.2] (174-21-101-38.tukw.qwest.net. [174.21.101.38]) by smtp.gmail.com with ESMTPSA id a15-v6sm8870759pfe.32.2018.09.28.07.22.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 28 Sep 2018 07:22:32 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Possible file download bug? From: Allan Clark In-Reply-To: Date: Fri, 28 Sep 2018 14:22:00 -0000 Cc: "crossgcc@sourceware.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Paul Smith X-SW-Source: 2018-09/txt/msg00018.txt.bz2 > On Sep 28, 2018, at 06:11, Paul Smith wrote: >=20 > Crossgcc, >=20 >=20 > I wanted to alert you to a possible bug. I'm using someone else's produc= t that uses an old copy of Crossgcc and I've found the following issue, and= from looking at the latest Crossgcc code I suspect the same bug still exis= ts. >=20 >=20 > The issue is in scripts/functions in the code that downloads a file from = the web using wget or curl. My local ISP 'catches' page load errors and re= turns their own generated HTML error page and the bug I'm seeing results fr= om a file download believing it succeeded when actually it downloaded just = a dummy HTML page. >=20 >=20 > In my case the files were always supposed to be variants on Linux tar fil= es so it easy to use the Linux 'file' command to see if the file was actual= ly an HTML page. I don't know whether you can do the same or whether the f= iles you are downloaded are more diverse and need more careful checking, pe= rhaps outside of the file download function. >=20 >=20 > However I wanted to alert you to this odd behaviour as it soaked up a few= hours this morning identifying the cause and a fix. When the file is not found for download, does the ISP forward a 4xx or 5xx = error code, or a 200 as though nothing went wrong? Allan