1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00

Use VFS operations for file I/O.

Changed calls to dos_{opendir,readdir} to vfs_{opendir,readdir}
equivalents.
(This used to be commit 5051a21061)
This commit is contained in:
Tim Potter 1999-04-04 05:40:28 +00:00
parent 9d4b57069c
commit d4ba8a3fb3

View File

@ -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;