From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33728 invoked by alias); 4 Sep 2016 11:30:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 33685 invoked by uid 89); 4 Sep 2016 11:30:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_05,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=downloadshtml, downloads.html, Franke, franke X-HELO: mail-in-14.arcor-online.net Received: from mail-in-14.arcor-online.net (HELO mail-in-14.arcor-online.net) (151.189.21.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 04 Sep 2016 11:30:42 +0000 Received: from mail-in-02-z2.arcor-online.net (mail-in-02-z2.arcor-online.net [151.189.8.14]) by mx.arcor.de (Postfix) with ESMTP id 3sRrJb67g3z8FL6 for ; Sun, 4 Sep 2016 13:30:39 +0200 (CEST) Received: from mail-in-14.arcor-online.net (mail-in-14.arcor-online.net [151.189.21.54]) by mail-in-02-z2.arcor-online.net (Postfix) with ESMTP id C8B2E53887C for ; Sun, 4 Sep 2016 13:30:39 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net 3sRrJb4x0pz6gs7 Received: from Gertrud (p4FF1C877.dip0.t-ipconnect.de [79.241.200.119]) (Authenticated sender: stromeko@arcor.de) by mail-in-14.arcor-online.net (Postfix) with ESMTPSA id 3sRrJb4x0pz6gs7 for ; Sun, 4 Sep 2016 13:30:39 +0200 (CEST) From: Achim Gratz To: cygwin@cygwin.com Subject: Re: [ANNOUNCEMENT] Updated/Test: base-files-4.3-1 References: <57CC0128.3080900@t-online.de> Date: Sun, 04 Sep 2016 11:30:00 -0000 In-Reply-To: <57CC0128.3080900@t-online.de> (Christian Franke's message of "Sun, 4 Sep 2016 13:10:32 +0200") Message-ID: <87k2ersy04.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2016-09/txt/msg00060.txt.bz2 Christian Franke writes: > --- base-files-profile.sh.orig 2016-09-03 13:37:59.000000000 +0200 > +++ base-files-profile.sh 2016-09-04 12:42:40.805222900 +0200 > @@ -18,7 +18,7 @@ > if [ ! -e ${fDest} -a ! -L ${fDest} ]; then > echo "Using the default version of ${fDest} (${fSrc})" > /usr/bin/mkdir -p $(dirname ${fDest}) > - /usr/bin/touch ${fDest} > + test "${fDest}" = "/Cygwin.bat" || /usr/bin/touch ${fDest} > /usr/bin/cp ${fSrc} ${fDest} > else > echo "${fDest} is already in existence, not overwriting." I have no idea why it's touching the file first, but I'd rather use cp --preserve=mode and fix the mode bits in /etc/defaults if necessary. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple