diff options
author | Jeremy Allison <jra@samba.org> | 2002-01-14 23:12:45 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-01-14 23:12:45 +0000 |
commit | 73ee41adc64658e9d89e557de686fde4ef9365a2 (patch) | |
tree | 54a98ec456e3c7d4d1d225d3aea302afc7c49aa0 /source/smbd/vfs-wrap.c | |
parent | 1239feecf50ca4ab746c4fbeddd446989bf05721 (diff) | |
download | samba-73ee41adc64658e9d89e557de686fde4ef9365a2.tar.gz samba-73ee41adc64658e9d89e557de686fde4ef9365a2.tar.xz samba-73ee41adc64658e9d89e557de686fde4ef9365a2.zip |
Finished UNIX extensions - including realpath checks on link creation.
Now to add tests....
Jeremy.
Diffstat (limited to 'source/smbd/vfs-wrap.c')
-rw-r--r-- | source/smbd/vfs-wrap.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/smbd/vfs-wrap.c b/source/smbd/vfs-wrap.c index 5e04d9af584..372dddf589f 100644 --- a/source/smbd/vfs-wrap.c +++ b/source/smbd/vfs-wrap.c @@ -702,6 +702,21 @@ int vfswrap_mknod(connection_struct *conn, const char *pathname, mode_t mode, SM return result; } +char *vfswrap_realpath(connection_struct *conn, const char *path, char *resolved_path) +{ + char *result; + + START_PROFILE(syscall_realpath); + +#ifdef VFS_CHECK_NULL + if ((path == NULL) || (resolved_path == NULL)) + smb_panic("NULL pointer passed to vfswrap_realpath()\n"); +#endif + result = sys_realpath(path, resolved_path); + END_PROFILE(syscall_realpath); + return result; +} + size_t vfswrap_fget_nt_acl(files_struct *fsp, int fd, SEC_DESC **ppdesc) { size_t result; |