delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/11/09:21:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: "Jon A. Lambert" <jlsysinc AT alltel DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Unwanted .exe appended to symlinks
In-Reply-To: <03d301c58616$166ad5f0$0200000a@agamemnon>
Message-ID: <Pine.GSO.4.61.0507110918170.6749@slinky.cs.nyu.edu>
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

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
<http://cygwin.com/cygwin-ug-net/cygwin-ug-net.html#using-specialnames>.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019