summaryrefslogtreecommitdiff
path: root/source3/smbd/dosmode.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/dosmode.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/dosmode.c')
-rw-r--r--source3/smbd/dosmode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c
index b74e11e643..e6f1dc7206 100644
--- a/source3/smbd/dosmode.c
+++ b/source3/smbd/dosmode.c
@@ -148,7 +148,7 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT *
if (!st) {
st = &st1;
- if (dos_stat(fname,st)) return(-1);
+ if (conn->vfs_ops.stat(dos_to_unix(fname,False),st)) return(-1);
}
if (S_ISDIR(st->st_mode)) dosmode |= aDIR;
@@ -186,7 +186,7 @@ int file_chmod(connection_struct *conn,char *fname,int dosmode,SMB_STRUCT_STAT *
unixmode |= tmp;
}
- return(dos_chmod(fname,unixmode));
+ return(conn->vfs_ops.chmod(fname,unixmode));
}
@@ -202,7 +202,7 @@ int file_utime(connection_struct *conn, char *fname, struct utimbuf *times)
errno = 0;
- if(dos_utime(fname, times) == 0)
+ if(conn->vfs_ops.utime(dos_to_unix(fname, False), times) == 0)
return 0;
if((errno != EPERM) && (errno != EACCES))
@@ -217,7 +217,7 @@ int file_utime(connection_struct *conn, char *fname, struct utimbuf *times)
(as DOS does).
*/
- if(dos_stat(fname,&sb) != 0)
+ if(conn->vfs_ops.stat(dos_to_unix(fname,False),&sb) != 0)
return -1;
/* Check if we have write access. */
@@ -230,7 +230,7 @@ int file_utime(connection_struct *conn, char *fname, struct utimbuf *times)
current_user.ngroups,current_user.groups)))) {
/* We are allowed to become root and change the filetime. */
become_root(False);
- ret = dos_utime(fname, times);
+ ret = conn->vfs_ops.utime(dos_to_unix(fname, False), times);
unbecome_root(False);
}
}