From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25791 invoked from network); 9 Jun 2022 18:52:31 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 9 Jun 2022 18:52:31 -0000 Received: (qmail 25859 invoked by uid 550); 9 Jun 2022 18:52:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3882 invoked from network); 9 Jun 2022 18:42:49 -0000 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=iL0AFBA68ntbuPH9/5YtgRO9Ex7duh8fG8VtUkwqWfM=; b=NPaX4VebbddEwA6l7V3pE0IXXk18uf1IeeMt+RXCXT7vEXxdn6KS27ZIhp7ZnhLS2w YRA7oVXPeFPen7Jq+efFnhRpmVo6HwK69dtYYSKnKgVBHqbuTF7cF8fIRrkSFLXHHhYl 3C74Kpl0h5Guq3d2AWiCafS8CpIYS1SdLILLBGV9sMUVlHZw3Aiop4QySYzAX+bAPYPX qfHGjQd19rDjmymdxsaMKesG7lMvIII+x3yytAicdvN73yJ1bF7BbjKnkvuI4Thnrx21 0jz5lo6iPVCV0djY/zUbLeQpbfznnkhC/PpdnQt6vzdLtJw0OSsz3otKe5iKePlodajR +0Uw== X-Gm-Message-State: AOAM533rllk2dWNy/IfVvPYRvzLgoSZPVAwz/zFG+3xYPZ/yVtMljlBO TvYcuh19s23QFtyav3dW+Za7KtwLkG6+v9Bmqi6GKNvBFfw= X-Google-Smtp-Source: ABdhPJweHJii1S6lQEX5crksZWfFALObODM4bhsRGF7POYjx1H1bHvCAPA/nN9gt36fEkViKff24IsR383XnLZLkchQ= X-Received: by 2002:a05:6402:26ce:b0:431:52c9:5a9 with SMTP id x14-20020a05640226ce00b0043152c905a9mr27852114edd.61.1654800157643; Thu, 09 Jun 2022 11:42:37 -0700 (PDT) MIME-Version: 1.0 From: Hans Harder Date: Thu, 9 Jun 2022 20:42:28 +0200 Message-ID: To: musl@lists.openwall.com Content-Type: text/plain; charset="UTF-8" Subject: [musl] hostname is using a case sensitive search in function name_from_hosts Hi, I discovered that the function name_from_hosts parses the /etc/hosts file and does a case sensitive search for a name. Sometimes I encounter mixed upper and lowercase hostnames in a /etc/hosts file. It would be easier if the function searches for the name in a case insensitive way.... By changing line 68 in src/network/lookup_name.c for(p=line+1; (p=strstr(p, name)) && to: for(p=line+1; (p=strcasestr(p, name)) && That would resolve the problem. Hans