9f105b4
When "case" is enabled, we've been setting the target filename to the buffer
9f105b4
in which we'd store the lower-cased version of the name, even if we ended up
9f105b4
not generating a lower-cased version of the name, causing the client to store
d11c1af
the incoming data in whichever file whose name we'd last generated. ITS#5940.
9f105b4
diff -up src/appl/gssftp/ftp/cmds.c src/appl/gssftp/ftp/cmds.c
9f105b4
--- src/appl/gssftp/ftp/cmds.c	2008-04-16 10:36:13.000000000 -0400
9f105b4
+++ src/appl/gssftp/ftp/cmds.c	2008-04-16 10:36:16.000000000 -0400
9f105b4
@@ -1013,8 +1013,10 @@ void mget(argc, argv)
9f105b4
 						tp++;
9f105b4
 						tp2++;
9f105b4
 					}
9f105b4
+					tp = tmpbuf;
9f105b4
+				} else {
9f105b4
+					tp = cp;
9f105b4
 				}
9f105b4
-				tp = tmpbuf;
9f105b4
 			}
9f105b4
 			if (ntflag) {
9f105b4
 				tp = dotrans(tp);