summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-04 05:40:28 +0000
committerTim Potter <tpot@samba.org>1999-04-04 05:40:28 +0000
commitd4ba8a3fb31698603cb2da740a0e434dd43eb48e (patch)
treefe43cf75a9b653d85d5f766750390a826e5b32a8 /source3/smbd
parent9d4b57069cc5ce46c33079ed5ca3dfa3f58118e1 (diff)
downloadsamba-d4ba8a3fb31698603cb2da740a0e434dd43eb48e.tar.gz
samba-d4ba8a3fb31698603cb2da740a0e434dd43eb48e.tar.bz2
samba-d4ba8a3fb31698603cb2da740a0e434dd43eb48e.zip
Use VFS operations for file I/O.
Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir} equivalents. (This used to be commit 5051a210619374639121124e32d24217255e992e)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/dir.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index dcf1d158b4..52d271e284 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -470,7 +470,7 @@ BOOL get_dir_entry(connection_struct *conn,char *mask,int dirtype,char *fname,
pstrcpy(pathreal,path);
pstrcat(path,fname);
pstrcat(pathreal,dname);
- if (dos_stat(pathreal,&sbuf) != 0)
+ if (conn->vfs_ops.stat(dos_to_unix(pathreal, False), &sbuf) != 0)
{
DEBUG(5,("Couldn't stat 1 [%s]\n",path));
continue;
@@ -518,7 +518,7 @@ void *OpenDir(connection_struct *conn, char *name, BOOL use_veto)
{
Dir *dirp;
char *n;
- DIR *p = dos_opendir(name);
+ DIR *p = conn->vfs_ops.opendir(name);
int used=0;
if (!p) return(NULL);
@@ -530,7 +530,7 @@ void *OpenDir(connection_struct *conn, char *name, BOOL use_veto)
dirp->pos = dirp->numentries = dirp->mallocsize = 0;
dirp->data = dirp->current = NULL;
- while ((n = dos_readdirname(p)))
+ while ((n = vfs_readdirname(conn, p)))
{
int l = strlen(n)+1;