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-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id E49F91F934 for ; Tue, 29 Sep 2020 03:00:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727226AbgI2DAo (ORCPT ); Mon, 28 Sep 2020 23:00:44 -0400 Received: from cloud.peff.net ([104.130.231.41]:43960 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgI2DAo (ORCPT ); Mon, 28 Sep 2020 23:00:44 -0400 Received: (qmail 7338 invoked by uid 109); 29 Sep 2020 03:00:44 -0000 Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.94) with ESMTP; Tue, 29 Sep 2020 03:00:44 +0000 Authentication-Results: cloud.peff.net; auth=none Received: (qmail 14576 invoked by uid 111); 29 Sep 2020 03:00:43 -0000 Received: from coredump.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.2) by peff.net (qpsmtpd/0.94) with (TLS_AES_256_GCM_SHA384 encrypted) ESMTPS; Mon, 28 Sep 2020 23:00:43 -0400 Authentication-Results: peff.net; auth=none Date: Mon, 28 Sep 2020 23:00:43 -0400 From: Jeff King To: Junio C Hamano Cc: Carlo Arenas , Nikita Leonov via GitGitGadget , git@vger.kernel.org, Johannes Schindelin , Nikita Leonov Subject: Re: [PATCH v2 2/3] credentials: make line reading Windows compatible Message-ID: <20200929030043.GA905754@coredump.intra.peff.net> References: <20200929003000.GA898702@coredump.intra.peff.net> <20200929004448.GD898702@coredump.intra.peff.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Mon, Sep 28, 2020 at 05:54:37PM -0700, Junio C Hamano wrote: > Jeff King writes: > > > Yeah, that is probably what would happen. I have to admit that it's such > > an obscure case that I'm not sure I really care. It's unlikely in > > practice, and if somebody did report such a case, I think my first > > response would be "well, why did you have a broken entry stuck in your > > file?". > > I think we know the likely answer. "I once used Windows to edit the > file manually". > > After which the file looks broken, so the user may have re-added via > the credential API (with LF line ending) a new entry for the host > and have been happily using the result. I wrote something less charitable towards the user at first, and then toned it down. But I think I toned it down too much. Maybe my response would be "garbage in, garbage out; it was lucky that it worked before". -Peff