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 | f96625ec124adb6e110dc54632e006b3620a962b (patch) | |
tree | 599308b187d6be1c86e6f91279e6822985649e1c /source/smbd/vfs-wrap.c | |
parent | 0f707ac1fb5685b800d6599b9074ec1d4e65b1c1 (diff) | |
download | samba-f96625ec124adb6e110dc54632e006b3620a962b.tar.gz samba-f96625ec124adb6e110dc54632e006b3620a962b.tar.xz samba-f96625ec124adb6e110dc54632e006b3620a962b.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.
Diffstat (limited to 'source/smbd/vfs-wrap.c')
-rw-r--r-- | source/smbd/vfs-wrap.c | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/source/smbd/vfs-wrap.c b/source/smbd/vfs-wrap.c index 5db16894500..12ba9bda841 100644 --- a/source/smbd/vfs-wrap.c +++ b/source/smbd/vfs-wrap.c @@ -284,6 +284,42 @@ int vfswrap_chmod(char *path, mode_t mode) return result; } +int vfswrap_chown(char *path, uid_t uid, gid_t gid) +{ + int result; + +#ifdef VFS_CHECK_NULL + if (path == NULL) { + smb_panic("NULL pointer passed to vfswrap_chown()\n"); + } +#endif + + result = sys_chown(path, uid, gid); + return result; +} + +int vfswrap_chdir(char *path) +{ +#ifdef VFS_CHECK_NULL + if (path == NULL) { + smb_panic("NULL pointer passed to vfswrap_chdir()\n"); + } +#endif + + return chdir(path); +} + +char *vfswrap_getwd(char *path) +{ +#ifdef VFS_CHECK_NULL + if (path == NULL) { + smb_panic("NULL pointer passed to vfswrap_getwd()\n"); + } +#endif + + return sys_getwd(path); +} + int vfswrap_utime(char *path, struct utimbuf *times) { int result; @@ -310,3 +346,13 @@ BOOL vfswrap_lock(int fd, int op, SMB_OFF_T offset, SMB_OFF_T count, int type) { return fcntl_lock(fd, op, offset, count,type); } + +#if 0 +size_t vfswrap_get_nt_acl(files_struct *fsp, SEC_DESC **ppdesc) +{ +} + +BOOL vfswrap_set_nt_acl(files_struct *fsp, uint32 security_info_sent, SEC_DESC *psd) +{ +} +#endif |