diff options
author | James Peach <jpeach@samba.org> | 2007-03-23 19:31:11 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:51 -0500 |
commit | e7b21b1ef3f79c0df2bae5f15c345ef74292c404 (patch) | |
tree | 02efb280dc05816fcbe4a7587ced7f722cc8215e /source/modules | |
parent | e27d094620178f316bf79540164bbfe6ff3a3851 (diff) | |
download | samba-e7b21b1ef3f79c0df2bae5f15c345ef74292c404.tar.gz samba-e7b21b1ef3f79c0df2bae5f15c345ef74292c404.tar.xz samba-e7b21b1ef3f79c0df2bae5f15c345ef74292c404.zip |
r21950: After discussion with the Apple and Linux client maintainers,
changing the FindFirst response for the UNIX_INFO2 level to include
a length field before the name. The name is not required to be null
terminated. The length field does not count any null.
Also add call to chflags(2) in the default VFS module so that this
will work be default on BSD-derived platform. Add UNIX-INFO2 test
to the build farm to get some non-BSD coverage.
Jeremy and Jerry, please review for inclusion in 3.0.25.
Diffstat (limited to 'source/modules')
-rw-r--r-- | source/modules/vfs_default.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/modules/vfs_default.c b/source/modules/vfs_default.c index 4febc064d94..67e615ec233 100644 --- a/source/modules/vfs_default.c +++ b/source/modules/vfs_default.c @@ -905,8 +905,12 @@ static NTSTATUS vfswrap_notify_watch(vfs_handle_struct *vfs_handle, static int vfswrap_chflags(vfs_handle_struct *handle, const char *path, int flags) { +#ifdef HAVE_CHFLAGS + return chflags(path, flags); +#else errno = ENOSYS; return -1; +#endif } static size_t vfswrap_fget_nt_acl(vfs_handle_struct *handle, files_struct *fsp, int fd, uint32 security_info, SEC_DESC **ppdesc) |