summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/include/proto.h1
-rw-r--r--source3/smbd/vfs-wrap.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 671b6f74aa..7982e1094e 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -3338,6 +3338,7 @@ DIR *vfswrap_opendir(char *fname);
struct dirent *vfswrap_readdir(DIR *dirp);
int vfswrap_mkdir(char *path, mode_t mode);
int vfswrap_rmdir(char *path);
+int vfswrap_closedir(DIR *dirp);
int vfswrap_open(char *fname, int flags, mode_t mode);
int vfswrap_close(int fd);
ssize_t vfswrap_read(int fd, char *data, size_t n);
diff --git a/source3/smbd/vfs-wrap.c b/source3/smbd/vfs-wrap.c
index da69b3f006..990e931adf 100644
--- a/source3/smbd/vfs-wrap.c
+++ b/source3/smbd/vfs-wrap.c
@@ -70,7 +70,7 @@ int vfswrap_closedir(DIR *dirp)
{
int result;
- result = closedir(path);
+ result = closedir(dirp);
return result;
}