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