summaryrefslogtreecommitdiff
path: root/source3/smbd/filename.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>1999-04-04 06:25:13 +0000
committerTim Potter <tpot@samba.org>1999-04-04 06:25:13 +0000
commit6d5ef2e92995df1cbf5cd3d7c6a33fe55cedb311 (patch)
tree9b7d21dfadc24ce3d4f83749c527f2eb41ec8b1f /source3/smbd/filename.c
parentafc00dbd6f1c7281893ea55f4cca0bdb483f0c75 (diff)
downloadsamba-6d5ef2e92995df1cbf5cd3d7c6a33fe55cedb311.tar.gz
samba-6d5ef2e92995df1cbf5cd3d7c6a33fe55cedb311.tar.bz2
samba-6d5ef2e92995df1cbf5cd3d7c6a33fe55cedb311.zip
Use VFS operations for file I/O.
(This used to be commit cfddbdb62485256a947a30e04c753200451cbe1c)
Diffstat (limited to 'source3/smbd/filename.c')
-rw-r--r--source3/smbd/filename.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c
index 83e6fe092e..913d0b367e 100644
--- a/source3/smbd/filename.c
+++ b/source3/smbd/filename.c
@@ -441,7 +441,7 @@ BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component,
* stat the name - if it exists then we are all done!
*/
- if (dos_stat(name,&st) == 0) {
+ if (conn->vfs_ops.stat(name,&st) == 0) {
stat_cache_add(orig_path, name);
DEBUG(5,("conversion finished %s -> %s\n",orig_path, name));
if(pst)
@@ -509,7 +509,8 @@ BOOL unix_convert(char *name,connection_struct *conn,char *saved_last_component,
/*
* Check if the name exists up to this point.
*/
- if (dos_stat(name, &st) == 0) {
+
+ if (conn->vfs_ops.stat(name, &st) == 0) {
/*
* It exists. it must either be a directory or this must be
* the last part of the path for it to be OK.
@@ -661,7 +662,7 @@ BOOL check_name(char *name,connection_struct *conn)
if (!lp_symlinks(SNUM(conn)))
{
SMB_STRUCT_STAT statbuf;
- if ( (dos_lstat(name,&statbuf) != -1) &&
+ if ( (conn->vfs_ops.lstat(dos_to_unix(name,False),&statbuf) != -1) &&
(S_ISLNK(statbuf.st_mode)) )
{
DEBUG(3,("check_name: denied: file path name %s is a symlink\n",name));