summaryrefslogtreecommitdiff
path: root/source3/smbd/dir.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-02-03 02:02:54 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:32 -0500
commit91ef89daa03551fa17ff78adb9f36420057948da (patch)
treec0ad7eecb05150e9c1e8052db354f15fe6e563a8 /source3/smbd/dir.c
parent4523bd1446dc411a29b82bdd13e564979b0d5d18 (diff)
downloadsamba-91ef89daa03551fa17ff78adb9f36420057948da.tar.gz
samba-91ef89daa03551fa17ff78adb9f36420057948da.tar.bz2
samba-91ef89daa03551fa17ff78adb9f36420057948da.zip
r5183: Ensure we correctly set the per-connection "case_sensitive" setting.
Rename dptrs_open to the more correct dirhandles_open. Remove old #if 1. Jeremy. (This used to be commit c43bae306a18f5716acbe8571f4f414873400cb1)
Diffstat (limited to 'source3/smbd/dir.c')
-rw-r--r--source3/smbd/dir.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index e9934ff49c..fb1a700074 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -57,7 +57,7 @@ struct dptr_struct {
static struct bitmap *dptr_bmap;
static struct dptr_struct *dirptrs;
-static int dptrs_open = 0;
+static int dirhandles_open = 0;
#define INVALID_DPTR_KEY (-3)
@@ -135,7 +135,7 @@ static struct dptr_struct *dptr_get(int key, BOOL forclose)
for(dptr = dirptrs; dptr; dptr = dptr->next) {
if(dptr->dnum == key) {
if (!forclose && !dptr->dir_hnd) {
- if (dptrs_open >= MAX_OPEN_DIRECTORIES)
+ if (dirhandles_open >= MAX_OPEN_DIRECTORIES)
dptr_idleoldest();
DEBUG(4,("dptr_get: Reopening dptr key %d\n",key));
if (!(dptr->dir_hnd = OpenDir(dptr->conn, dptr->path))) {
@@ -385,7 +385,7 @@ int dptr_create(connection_struct *conn, pstring path, BOOL old_handle, BOOL exp
string_set(&conn->dirpath,dir2);
- if (dptrs_open >= MAX_OPEN_DIRECTORIES)
+ if (dirhandles_open >= MAX_OPEN_DIRECTORIES)
dptr_idleoldest();
dptr = SMB_MALLOC_P(struct dptr_struct);
@@ -968,7 +968,7 @@ struct smb_Dir *OpenDir(connection_struct *conn, const char *name)
goto fail;
}
- dptrs_open++;
+ dirhandles_open++;
return dirp;
fail:
@@ -1004,7 +1004,7 @@ int CloseDir(struct smb_Dir *dirp)
}
SAFE_FREE(dirp->name_cache);
SAFE_FREE(dirp);
- dptrs_open--;
+ dirhandles_open--;
return ret;
}