This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: latest cygwin does not track pwd?
- To: cygwin at sources dot redhat dot com
- Subject: Re: latest cygwin does not track pwd?
- From: takashi at flab dot fujitsu dot co dot jp
- Date: Wed, 01 Nov 2000 23:58:39 +0900
- References: <14847.5635.636000.348903@gargle.gargle.HOWL><4.3.1.2.20001031140921.02027560@pop.ma.ultranet.com><20001031142519.B28272@redhat.com><39FF9C8C.7597BC80@ece.gatech.edu><20001101005246.A6570@redhat.com>
Hi. Chris,
I found the latest inetutils-1.3.2-7 has the same behaviour.
$ ftp localhost
.......
ftp> pwd
550 Invalid argument.
inetutils-1.3.2/ftpd/ftpd.c also relys on this bug.
$ grep getpwd ftpd.c
path = getcwd (0, 0);
char *cwd = getcwd (0, 0);
char *path = getcwd (0, 0);
The ftpd should be fixed, I think.
Regards,
Takashi Nishigaya
> The problem is that it looks like perl is calling getcwd like this:
>
> getcwd (NULL, 0);
>
> and cygwin is returning a NULL, as is mandated by both the Single Unix
> Specification and the linux man page. 1.1.4 allowed zero length length
> arguments but that was a bug that I fixed in 1.1.5.
>
> I had no idea that people were relying on the bug.
>
> I'm not sure what to do about this. I am loathe to accomodate a bug
> like this but I don't want to force a new perl release or endure to the
> next two years of "I cygwined my perl 1.1.[5-9] and it am broke" messages
> either.
>
> cgf
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com