1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

pvfs_streams: directories don't have streams

metze
(This used to be commit 9ed7bb5afe)
This commit is contained in:
Stefan Metzmacher 2008-05-23 09:45:46 +02:00
parent 564b6ed025
commit c78bf3c2c9

View File

@ -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;