diff options
author | Jeremy Allison <jra@samba.org> | 2012-09-12 11:39:37 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-09-12 22:06:06 +0200 |
commit | b6636affaf4d475487e49ed8d5a31b94b82ae6d0 (patch) | |
tree | 8845f985f34468bf49e77fd800d2b9987c4f8b45 /source3/include/vfs.h | |
parent | a8676e69a636648d8a309e8e000dcd62d38bfa06 (diff) | |
download | samba-b6636affaf4d475487e49ed8d5a31b94b82ae6d0.tar.gz samba-b6636affaf4d475487e49ed8d5a31b94b82ae6d0.tar.bz2 samba-b6636affaf4d475487e49ed8d5a31b94b82ae6d0.zip |
Move cached cwd onto conn struct.
This enables us to make VFS modules safe for use in root called
code when we've changed directory under conn->connectpath.
Diffstat (limited to 'source3/include/vfs.h')
-rw-r--r-- | source3/include/vfs.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/vfs.h b/source3/include/vfs.h index 8e48803fe7..c83e7ed54b 100644 --- a/source3/include/vfs.h +++ b/source3/include/vfs.h @@ -145,6 +145,7 @@ /* Leave at 29 - not yet released. Add durable handle functions - metze/obnox */ /* Leave at 29 - not yet released. Added sys_acl_blob_get_file and sys_acl_blob_get_fd */ /* Bump to version 30 - Samba 4.0.0 will ship with interface version 30 */ +/* Leave at 30 - not yet released. Added conn->cwd to save vfs_GetWd() calls. */ #define SMB_VFS_INTERFACE_VERSION 30 /* @@ -315,6 +316,7 @@ typedef struct connection_struct { enum timestamp_set_resolution ts_res; char *connectpath; char *origpath; + char *cwd; /* Working directory. */ struct vfs_handle_struct *vfs_handles; /* for the new plugins */ |