Mail Archives: cygwin/2005/07/11/09:21:10
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 -