diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-05-23 09:45:46 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-05-23 09:55:03 +0200 |
commit | c78bf3c2c925060df3362625bbd1c3e96751c087 (patch) | |
tree | 311f1995693c205ba8dd2ace91609beccd20b74d /source4 | |
parent | 564b6ed025bdfbd93876e084e9f3dd1a6774fa5c (diff) | |
download | samba-c78bf3c2c925060df3362625bbd1c3e96751c087.tar.gz samba-c78bf3c2c925060df3362625bbd1c3e96751c087.tar.bz2 samba-c78bf3c2c925060df3362625bbd1c3e96751c087.zip |
pvfs_streams: directories don't have streams
metze
(This used to be commit 9ed7bb5afe6a73206bcba85f25305eb6630a5571)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/posix/pvfs_streams.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_streams.c b/source4/ntvfs/posix/pvfs_streams.c index 7e6173ef2f..3cd9952fd5 100644 --- a/source4/ntvfs/posix/pvfs_streams.c +++ b/source4/ntvfs/posix/pvfs_streams.c @@ -36,6 +36,13 @@ NTSTATUS pvfs_stream_information(struct pvfs_state *pvfs, int i; NTSTATUS status; + /* directories don't have streams */ + if (name->dos.attrib & FILE_ATTRIBUTE_DIRECTORY) { + info->num_streams = 0; + info->streams = NULL; + return NT_STATUS_OK; + } + streams = talloc(mem_ctx, struct xattr_DosStreams); if (streams == NULL) { return NT_STATUS_NO_MEMORY; |