Sophie

Sophie

distrib > Scientific%20Linux > 5x > x86_64 > media > main-src > by-pkgid > 8104c6e5600a8fbbbb44d47f9febbc59 > files > 30

krb5-1.6.1-25.el5.src.rpm

Fix mget when runique is enabled and the globbing patch has been applied.
diff -up krb5-1.3.4/src/appl/gssftp/ftp/ftp.c krb5-1.3.4/src/appl/gssftp/ftp/ftp.c
--- krb5-1.3.4/src/appl/gssftp/ftp/ftp.c	2007-07-10 11:24:31.000000000 -0400
+++ krb5-1.3.4/src/appl/gssftp/ftp/ftp.c	2007-07-10 11:24:25.000000000 -0400
@@ -1188,7 +1188,8 @@ void recvrequest(char *cmd, char *volati
 				return;
 			}
 		}
-		else if (runique && (local = gunique(local)) == NULL) {
+		else if (runique && strcmp(cmd, "NLST") &&
+			 (local = gunique(local)) == NULL) {
 			(void) signal(SIGINT, oldintr);
 			code = -1;
 			return;