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:
parent
564b6ed025
commit
c78bf3c2c9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user