on short directories in safe mode.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10185
dc483132-0cff-0310-8789-
dd5450dbe970
+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.
}
(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.");
transflag = 0;
if (dout != NULL)
- (void) fclose(dout);
+ (void) fclose(dout);
data = -1;
pdata = -1;
}