On Sat, Nov 03, 2001 at 04:02:21PM +0200, Liviu Daia wrote:
> Somewhere along the path from 2.4.4 to 2.4.5, somebody made a less
> then fortunate change: issuing a command
>
> mget -c -E *.gz
>
> now results in a segfault after downloading and removing the first
> matching file. This seems to be consistently reproducible; please let
> me know if you need more information.
Thanks for report. Here is the patch I made.
--
Alexander. | http://www.yars.free.net/~lav/
Index: FileCopy.h
===================================================================
RCS file: /home/lav/cvsroot/lftp/src/FileCopy.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- FileCopy.h 2001/10/17 06:32:40 1.40
+++ FileCopy.h 2001/11/05 10:14:58 1.41
@@ -18,7 +18,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-/* $Id: FileCopy.h,v 1.40 2001/10/17 06:32:40 lav Exp $ */
+/* $Id: FileCopy.h,v 1.41 2001/11/05 10:14:58 lav Exp $ */
/*
classes defined here:
@@ -235,8 +235,8 @@
static FileCopy *(*fxp_create)(FileCopyPeer *src,FileCopyPeer *dst,bool cont);
void AllowWrite() { put->AllowWrite(); }
- bool WriteAllowed() { return put->WriteAllowed(); }
- bool WritePending() { return put->WritePending(); }
+ bool WriteAllowed() { return !put || put->WriteAllowed(); }
+ bool WritePending() { return put && put->WritePending(); }
};
class FileCopyPeerFA : public FileCopyPeer