summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-08-16 04:08:47 +0000
committerAndrew Tridgell <tridge@samba.org>1998-08-16 04:08:47 +0000
commit739d0b1ddc58bbb792c3eebe8c545602a4fae438 (patch)
tree3c8c93608f4ce3d870de18cee6673c2efea799da /source3/smbd/reply.c
parenta7acf10566af549eb71e7a421397c8073d55e0f6 (diff)
downloadsamba-739d0b1ddc58bbb792c3eebe8c545602a4fae438.tar.gz
samba-739d0b1ddc58bbb792c3eebe8c545602a4fae438.tar.bz2
samba-739d0b1ddc58bbb792c3eebe8c545602a4fae438.zip
got rid of the Files[] array completely (previously I'd just made it
private to files.c) It now is a doubly linked list with a bitmap for allocated file numbers. Similarly for the fd_ptr code. I also changed the default maximum number of open files to 4096. The static cost is 1 bit per file. It all seems to work, and it passes the "does Sue scream" test, but if you see weird behaviour then please investigate. With the volume of new code that has gone in there are bound to be one or two bugs lurking. note that you must do a "make clean" before building this as many data structures have changed in size. (This used to be commit 79755ce97004b787d7e83a8d18fc4c7c003b7231)
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 340602d3a5..e62c0bd576 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3279,7 +3279,7 @@ static BOOL copy_file(char *src,char *dest1,connection_struct *conn, int ofun,
1,0,0,&Access,&action);
if (!fsp1->open) {
- fsp1->reserved = False;
+ file_free(fsp1);
return(False);
}
@@ -3296,7 +3296,7 @@ static BOOL copy_file(char *src,char *dest1,connection_struct *conn, int ofun,
if (!fsp2->open) {
close_file(fsp1,False);
- fsp2->reserved = False;
+ file_free(fsp2);
return(False);
}