summaryrefslogtreecommitdiffstats
path: root/source/smbd/files.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-05 03:14:40 +0000
committerJeremy Allison <jra@samba.org>1998-09-05 03:14:40 +0000
commit63f65f5027d5022153fa2757b49c56829db1725b (patch)
tree7d16b000e29a14a6210ffe2fb0c65c371c90930e /source/smbd/files.c
parent88df8a8b25921389ee9d017b770bbae143cc51b8 (diff)
downloadsamba-63f65f5027d5022153fa2757b49c56829db1725b.tar.gz
samba-63f65f5027d5022153fa2757b49c56829db1725b.tar.xz
samba-63f65f5027d5022153fa2757b49c56829db1725b.zip
Bugfix for leak in reference counted file struct.
Added "nt smb support" parameter to allow NT SMB's to be turned off. Jeremy.
Diffstat (limited to 'source/smbd/files.c')
-rw-r--r--source/smbd/files.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/files.c b/source/smbd/files.c
index 163e4f0cf2f..0b72bcf0fa0 100644
--- a/source/smbd/files.c
+++ b/source/smbd/files.c
@@ -133,8 +133,8 @@ file_fd_struct *fd_get_already_open(SMB_STRUCT_STAT *sbuf)
(unsigned int)fd_ptr->dev, (double)fd_ptr->inode,
fd_ptr->ref_count));
#else /* LARGE_SMB_INO_T */
- DEBUG(3,("Re-used file_fd_struct dev = %x, inode = %x, ref_count = %d\n",
- (unsigned int)fd_ptr->dev, fd_ptr->inode,
+ DEBUG(3,("Re-used file_fd_struct dev = %x, inode = %lx, ref_count = %d\n",
+ (unsigned int)fd_ptr->dev, (unsigned long)fd_ptr->inode,
fd_ptr->ref_count));
#endif /* LARGE_SMB_INO_T */
return fd_ptr;
@@ -315,7 +315,7 @@ void file_sync_all(connection_struct *conn)
/****************************************************************************
free up a fd_ptr
****************************************************************************/
-static void fd_ptr_free(file_fd_struct *fd_ptr)
+void fd_ptr_free(file_fd_struct *fd_ptr)
{
DLIST_REMOVE(FileFd, fd_ptr);