diff options
author | Jeremy Allison <jra@samba.org> | 2000-09-27 19:09:59 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-09-27 19:09:59 +0000 |
commit | b43b2e4f8a4be30e3f7aca6f570f5376fd508e3d (patch) | |
tree | 3c604a52b53f0a846fe62b5995becda7facda187 /source3/smbd/dosmode.c | |
parent | 8c93ddf3e0ea80d482cbee7bf233c32fc69955bb (diff) | |
download | samba-b43b2e4f8a4be30e3f7aca6f570f5376fd508e3d.tar.gz samba-b43b2e4f8a4be30e3f7aca6f570f5376fd508e3d.tar.bz2 samba-b43b2e4f8a4be30e3f7aca6f570f5376fd508e3d.zip |
Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector them
through the VFS. All file access/directory access code in smbd should now
go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl()
vfs_set_nt_acl() call API design.
Jeremy.
(This used to be commit f96625ec124adb6e110dc54632e006b3620a962b)
Diffstat (limited to 'source3/smbd/dosmode.c')
-rw-r--r-- | source3/smbd/dosmode.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c index 8e2382ee9f..269d286517 100644 --- a/source3/smbd/dosmode.c +++ b/source3/smbd/dosmode.c @@ -61,7 +61,7 @@ mode_t unix_mode(connection_struct *conn,int dosmode,const char *fname) dname = parent_dirname(fname); DEBUG(2,("unix_mode(%s) inheriting from %s\n",fname,dname)); - if (dos_stat(dname,&sbuf) != 0) { + if (vfs_stat(conn,dname,&sbuf) != 0) { DEBUG(4,("unix_mode(%s) failed, [dir %s]: %s\n",fname,dname,strerror(errno))); return(0); /* *** shouldn't happen! *** */ } @@ -191,7 +191,7 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT * if (!st) { st = &st1; - if (conn->vfs_ops.stat(dos_to_unix(fname,False),st)) return(-1); + if (vfs_stat(conn,fname,st)) return(-1); } if (S_ISDIR(st->st_mode)) dosmode |= aDIR; @@ -227,7 +227,7 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT * unixmode |= (st->st_mode & (S_IWUSR|S_IWGRP|S_IWOTH)); } - return(conn->vfs_ops.chmod(dos_to_unix(fname,False),unixmode)); + return(vfs_chmod(conn,fname,unixmode)); } @@ -258,7 +258,7 @@ int file_utime(connection_struct *conn, char *fname, struct utimbuf *times) (as DOS does). */ - if(conn->vfs_ops.stat(dos_to_unix(fname,False),&sb) != 0) + if(vfs_stat(conn,fname,&sb) != 0) return -1; /* Check if we have write access. */ |