This is the mail archive of the
cygwin-apps@cygwin.com
mailing list for the Cygwin project.
Re: [update] base-files and base-passwd
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: "Pierre A. Humblet" <pierre at phumblet dot no-ip dot org>
- Cc: cygwin-apps at cygwin dot com, john dot r dot morrison at ntlworld dot com
- Date: Sat, 21 Aug 2004 11:11:40 -0400 (EDT)
- Subject: Re: [update] base-files and base-passwd
- References: <3.0.5.32.20040821095652.00813290@incoming.verizon.net>
- Reply-to: cygwin-apps at cygwin dot com
On Sat, 21 Aug 2004, Pierre A. Humblet wrote:
> On Sat, 14 Aug 2004 13:25:24 -0400 I wrote
> >John,
> >
> >could you use "cp -p" in base-files-profile.sh?
> >
> >The postinstall exim.sh uses the non-existence of /etc/exim.conf
> >as the sign that it's a fresh installation. That test doesn't
> >work right if it happens to run after base-files-profile.sh,
> >because it creates /etc/exim.conf from /etc/defaults/etc
> >
> >Being able to compare dates would greatly help.
>
> That was brain dead suggestion because the -p undoes
> the effect of the "touch" and reintroduces the ntsec
> problem with cp.
> Using the -p to timestamp the file has become unnecessary
> anyway since now base-files-profile only handles files in its
> manifest.
> I am afraid a new version is necessary. Sorry about that.
There's always "touch -r" (or "touch --reference="), if you really need
the timestamp. This won't touch the ACLs.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw