From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS3215 2.6.0.0/16 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 7723D1F601 for ; Sat, 17 Dec 2022 01:31:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229852AbiLQBbT (ORCPT ); Fri, 16 Dec 2022 20:31:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57656 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229488AbiLQBbR (ORCPT ); Fri, 16 Dec 2022 20:31:17 -0500 Received: from elephants.elehost.com (elephants.elehost.com [216.66.27.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E0EA67D9A for ; Fri, 16 Dec 2022 17:31:16 -0800 (PST) Received: from Mazikeen (cpebc4dfb928313-cmbc4dfb928310.cpe.net.cable.rogers.com [99.228.251.108] (may be forged)) (authenticated bits=0) by elephants.elehost.com (8.16.1/8.16.1) with ESMTPSA id 2BH1VF1B012286 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Fri, 16 Dec 2022 20:31:15 -0500 (EST) (envelope-from rsbecker@nexbridge.com) Reply-To: From: To: Subject: [Possible Bug] config --system fails when ./etc does not exist Date: Fri, 16 Dec 2022 20:31:09 -0500 Organization: Nexbridge Inc. Message-ID: <007a01d911b7$4125bd60$c3713820$@nexbridge.com> MIME-Version: 1.0 Content-Type: text/plain; boundary="----=_NextPart_000_0074_01D9118B.96936A30"; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQE4CFRwLZxOlqSDP71bamdH/PZGgw== Content-Language: en-ca Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On an initial install, the ./etc directory does not exist where git is installed. This causes git config --system to fail because the ./etc/config file cannot be created because of ENOENT. Is this deliberately intended for a specific security concern or would a patch to automatically create ./etc if it the directory does not exist be desired? It would need a stat("./etc".) call prior to attempting to create the ./etc/config file, with appropriate knobs, of course. If the build assumes the use of /etc instead of ./etc inside /usr/local, we probably do not want to do this. Curiously, Randall