X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; q=dns; s=default; b=DjpgU ZadZataGbUgLpNNpHUe46BDSAmS/fKC3Jt+aGmi/ZxBdhXBMjavAR8wuCJF8uOC5 3yEn5Viuc5K9liPDGbB3cRIM5J0OWII61D5DAWYRT8SCWcvRkJO9IP9zPplzw6CL O8OxNp9EbVbeIvsMs0FE2oWJ6LQIBWsEIYVOB0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type; s=default; bh=I38m9Hb7+MC fIofT+KSr5e4/vrw=; b=va6kAV9GjnpyN3SS53MYm1LE0M2ABAJYPV+O0kXmThv 4e9K1JCnV0ee5o2K2G4GnuHdWJstMduPCqf8LejO6KCOh+lHKzAQKk1vnotOk+t2 P7FWgvs7HfLe06Y7X8ZS2xPABwKX+rm4agTDPMugDP1Gglen6KqWx+1QuN6TbGvw = Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-14.arcor-online.net 3sRrJb4x0pz6gs7 From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: [ANNOUNCEMENT] Updated/Test: base-files-4.3-1 References: <57CC0128 DOT 3080900 AT t-online DOT de> Date: Sun, 04 Sep 2016 13:30:35 +0200 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 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