diff options
author | Volker Lendecke <vl@samba.org> | 2012-01-10 13:56:37 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-01-12 23:59:22 +0100 |
commit | cfebba96bdab2097b6115f10b649ec6c23c72519 (patch) | |
tree | 3ae01b915dd1d915f2f5a06f84480a756479203b /source3/utils | |
parent | 9cf6d735d43f6f905b19f52d38c93aa30092333d (diff) | |
download | samba-cfebba96bdab2097b6115f10b649ec6c23c72519.tar.gz samba-cfebba96bdab2097b6115f10b649ec6c23c72519.tar.bz2 samba-cfebba96bdab2097b6115f10b649ec6c23c72519.zip |
s3: Put an indirection layer into share_mode_lock
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/status.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/utils/status.c b/source3/utils/status.c index 76f6167570..8ae8de76a3 100644 --- a/source3/utils/status.c +++ b/source3/utils/status.c @@ -212,11 +212,13 @@ static void print_brl(struct file_id id, share_mode = fetch_share_mode_unlocked(NULL, id); if (share_mode) { - bool has_stream = share_mode->stream_name != NULL; + bool has_stream = share_mode->data->stream_name != NULL; - fname = talloc_asprintf(NULL, "%s%s%s", share_mode->base_name, + fname = talloc_asprintf(NULL, "%s%s%s", + share_mode->data->base_name, has_stream ? ":" : "", - has_stream ? share_mode->stream_name : + has_stream ? + share_mode->data->stream_name : ""); } else { fname = talloc_strdup(NULL, ""); |