Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: takashi AT flab DOT fujitsu DOT co DOT jp Date: Thu, 02 Nov 2000 02:45:42 +0900 Message-ID: <87itq7bn7d.wl@EDEN.people.flab.fujitsu.co.jp> To: cabbey AT bresnanlink DOT net Cc: cygwin AT sources DOT redhat DOT com Subject: Patch for inetutils' pwd problem (Re: latest cygwin does not track pwd?) In-Reply-To: In your message of "Wed, 01 Nov 2000 09:47:45 -0600" <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001101094438 DOT 00ae3660 AT pop DOT bresnanlink DOT net> References: <14847 DOT 5635 DOT 636000 DOT 348903 AT gargle DOT gargle DOT HOWL> <4 DOT 3 DOT 1 DOT 2 DOT 20001031140921 DOT 02027560 AT pop DOT ma DOT ultranet DOT com> <20001031142519 DOT B28272 AT redhat DOT com> <39FF9C8C DOT 7597BC80 AT ece DOT gatech DOT edu> <20001101005246 DOT A6570 AT redhat DOT com> <87k8anbuxt DOT wl AT EDEN DOT people DOT flab DOT fujitsu DOT co DOT jp> <4 DOT 3 DOT 2 DOT 7 DOT 0 DOT 20001101094438 DOT 00ae3660 AT pop DOT bresnanlink DOT net> User-Agent: Wanderlust/1.1.1 (Purple Rain) WEMI/1.13.7 (Shimada) FLIM/1.13.2 (Kasanui) MULE XEmacs/21.2 (beta36) (Notus) (i586-pc-cygwin) MIME-Version: 1.0 (generated by WEMI 1.13.7 - "Shimada") Content-Type: multipart/mixed; boundary="Multipart_Thu_Nov__2_02:45:42_2000-1" --Multipart_Thu_Nov__2_02:45:42_2000-1 Content-Type: text/plain; charset=US-ASCII The enclosed patch will fix the problem of getcwd bug in ftpd. This will work both for inetutils-1.3.2-7 and inetutils-1.3.2-8. I hope this help. Regards, Takashi Nishigaya At Wed, 01 Nov 2000 09:47:45 -0600, Chris Abbey wrote: > > At 23:58 11/1/00 +0900, takashi AT flab DOT fujitsu DOT co DOT jp wrote: > >$ 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. > > I am sure that patches will be happily accepted by the list. ;) > > now the forces of openness > have a powerful and > unexpected new ally > http://ibm.com/linux/ --Multipart_Thu_Nov__2_02:45:42_2000-1 Content-Type: application/octet-stream; type=patch Content-Disposition: attachment; filename="inetutils-1.3.2.diff" Content-Transfer-Encoding: base64 LS0tIGluZXR1dGlscy0xLjMuMi9mdHBkL2Z0cGQuYy5vcmlnCVRodSBOb3YgIDIgMDE6NDc6 NDggMjAwMAorKysgaW5ldHV0aWxzLTEuMy4yL2Z0cGQvZnRwZC5jCVRodSBOb3YgIDIgMDI6 Mjc6MjIgMjAwMApAQCAtMjY3LDcgKzI2NywxNSBAQAogICAgICAgICBzdGF0aWMgY2hhciAq cGF0aCA9IDA7CiAJaWYgKHBhdGgpCiAJICAgICAgICBmcmVlIChwYXRoKTsKKyNpZiBkZWZp bmVkKEhBVkVfR0VUQ1dEX1pFUk9fU0laRSkKIAlwYXRoID0gZ2V0Y3dkICgwLCAwKTsKKyNl bHNlaWYgZGVmaW5lZChQQVRIX01BWCkKKyAgICAgICAgcGF0aCA9IGdldGN3ZCAoMCwgUEFU SF9NQVgpOworI2Vsc2VpZiBkZWZpbmVkKE1BWFBBVEhMRU4pCisgICAgICAgIHBhdGggPSBn ZXRjd2QgKDAsIE1BWFBBVEhMRU4pOworI2Vsc2UKKyAgICAgICAgcGF0aCA9IGdldGN3ZCAo MCwgMjA0OCk7CisjZW5kaWYKIAlpZiAoISBwYXRoKQogCQlyZXR1cm4gKCIiKTsKIAlpZiAo cGF0aFsxXSAhPSAnXDAnKSB7CS8qIHNwZWNpYWwgY2FzZSBmb3Igcm9vdCBkaXIuICovCkBA IC0xNDE4LDcgKzE0MjYsMTUgQEAKIAllbHNlIHsKIAkJLyogV2UgaGF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Content-Type: text/plain; charset=us-ascii -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com --Multipart_Thu_Nov__2_02:45:42_2000-1--