Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37867419
en ru br
ALT Linux repos
S:0.18-alt0.pre1.3
5.0: 0.18-alt0.pre1.1
4.1: 0.18-alt0.pre1.0.M41.1
4.0: 0.17-ipl5mdk.1
3.0: 0.17-ipl5mdk

Group :: Networking/File transfer
RPM: ftp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: netkit-ftp-0.17-fedora-data.patch
Download


--- netkit-ftp-0.17/ftp/ftp.c.data	2005-12-02 15:31:27.000000000 +0100
+++ netkit-ftp-0.17/ftp/ftp.c	2005-12-02 15:35:46.000000000 +0100
@@ -1223,6 +1223,7 @@
 static int
 initconn(void)
 {
+	int rc;
 	u_char *p, *a;
 	int result, tmpno = 0;
 	socklen_t len;
@@ -1240,6 +1241,13 @@
 	}
 #endif
 	if (passivemode) {
+		if (data >= 0){
+			rc = close (data);
+			data = -1;
+			if (rc == -1){
+				perror ("ftp: close");
+			}
+		}
 		data_addr = hisctladdr;
 		data = socket(data_addr.su_family, SOCK_STREAM, 0);
 		if (data < 0) {
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin