summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/appl/gssftp/ftpd/ChangeLog4
-rw-r--r--src/appl/gssftp/ftpd/ftpd.c8
2 files changed, 10 insertions, 2 deletions
diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog
index 9b4ca1e05..d43bbdbaf 100644
--- a/src/appl/gssftp/ftpd/ChangeLog
+++ b/src/appl/gssftp/ftpd/ChangeLog
@@ -1,3 +1,7 @@
+Thu Aug 28 23:48:27 1997 Sam Hartman <hartmans@luminous.mesas.com>
+
+ * ftpd.c (send_file_list): Flush the data before closing it.
+
Sun Aug 17 14:24:09 1997 Ezra Peisach <epeisach@mit.edu>
* Makefile.in (SRCS): Add $(srcdir) where needed.
diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c
index b4a5794b9..aedacdf4e 100644
--- a/src/appl/gssftp/ftpd/ftpd.c
+++ b/src/appl/gssftp/ftpd/ftpd.c
@@ -2221,7 +2221,11 @@ send_file_list(whichfiles)
}
(void) closedir(dirp);
}
- ret = secure_write(fileno(dout), "", 0);
+ if (dout != NULL ) {
+ ret = secure_write(fileno(dout), "", 0);
+ if (ret >= 0)
+ ret = secure_flush(fileno(dout));
+ }
data_err:
if (dout == NULL)
reply(550, "No files found.");
@@ -2232,7 +2236,7 @@ data_err:
transflag = 0;
if (dout != NULL)
- (void) fclose(dout);
+ (void) fclose(dout);
data = -1;
pdata = -1;
}