mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
some servers don't return a fs_type and dev_type
(This used to be commit eaec1bdaadd744c63fb270b3807bc284dfadb37d)
This commit is contained in:
parent
0efd81efec
commit
d3bc355533
@ -283,8 +283,12 @@ NTSTATUS cli_tree_full_connection(struct cli_tree **ret_tree,
|
||||
}
|
||||
|
||||
tree->tid = tcon.tconx.out.cnum;
|
||||
tree->device = talloc_strdup(tree->mem_ctx, tcon.tconx.out.dev_type);
|
||||
tree->fs_type = talloc_strdup(tree->mem_ctx, tcon.tconx.out.fs_type);
|
||||
if (tcon.tconx.out.dev_type) {
|
||||
tree->device = talloc_strdup(tree->mem_ctx, tcon.tconx.out.dev_type);
|
||||
}
|
||||
if (tcon.tconx.out.fs_type) {
|
||||
tree->fs_type = talloc_strdup(tree->mem_ctx, tcon.tconx.out.fs_type);
|
||||
}
|
||||
|
||||
talloc_destroy(mem_ctx);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user