krb5/krb5-1.6.3-ftp_glob_runique.patch
Nalin Dahyabhai d4963922a8 - ftp: add patch to fix "runique on" case when globbing fixes applied
- stop adding a redundant but harmless call to initialize the gssapi
    internals
2008-02-26 21:18:38 +00:00

15 lines
511 B
Diff

Fix mget when runique is enabled and the globbing patch has been applied.
diff -up krb5/src/appl/gssftp/ftp/ftp.c krb5/src/appl/gssftp/ftp/ftp.c
--- krb5/src/appl/gssftp/ftp/ftp.c
+++ krb5/src/appl/gssftp/ftp/ftp.c
@@ -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;