Blame SOURCES/netkit-ftp-0.17-fdleak.patch

4f574c
diff -up netkit-ftp-0.17/ftp/cmds.c.old netkit-ftp-0.17/ftp/cmds.c
4f574c
--- netkit-ftp-0.17/ftp/cmds.c.old	2007-10-17 16:28:57.000000000 +0200
4f574c
+++ netkit-ftp-0.17/ftp/cmds.c	2007-10-17 16:33:41.000000000 +0200
4f574c
@@ -764,6 +764,7 @@ usage:
4f574c
 
4f574c
 	recvrequest("RETR", argv[2], argv[1], modestr,
4f574c
 		    argv[1] != oldargv1 || argv[2] != oldargv2);
4f574c
+	(void) close(data), data = -1;
4f574c
 	restart_point = 0;
4f574c
 	return (0);
4f574c
 }