Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Mon, 11 Jul 2005 09:20:49 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: "Jon A. Lambert" cc: cygwin AT cygwin DOT com Subject: Re: Unwanted .exe appended to symlinks In-Reply-To: <03d301c58616$166ad5f0$0200000a@agamemnon> Message-ID: References: <1120880636 DOT 6400 DOT 7 DOT camel AT localhost DOT localdomain> <42CF4C9D DOT 8000708 AT byu DOT net> <03d301c58616$166ad5f0$0200000a AT agamemnon> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 11 Jul 2005, Jon A. Lambert wrote: > Eric Blake wrote: > > Confirmed. Unfortunately, this is a side effect of my improvements > > to ln to unify the cygwin-specific .exe code which tries to determine > > when the original file exists as just "file" vs. "file.exe". > > See line 560 of postgres initdb script. > > -------- > cp /dev/null "$PGDATA"/postgresql.conf || exit_nicely > ------- > > The initdb script is failing with... > > cp: cannot stat `/dev/null.exe': No such file or directory > > It's there but cp cannot see it... > . > $ lal /dev/null > crw-rw-rw- 1 postgres None 1, 3 Jul 11 08:42 /dev/null Yes, I believe Eric already posted that the bug is in the .exe magic interacting with virtual devices. A workaround is to either use cat /dev/null >"$PGDATA"/postgresql.conf || exit_nicely or (untested) actually create a stat'able /dev/null using the create_devices.sh script from . HTH, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/