s3-smbd: use fruit:model string for mDNS registration
authorGünther Deschner <gd@samba.org>
Tue, 15 Jan 2019 13:26:17 +0000 (14:26 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 15 Jan 2019 20:27:20 +0000 (21:27 +0100)
commit09effcb53a97a935f3281a6c770f3608bc21f992
tree490511b9b3024802dfee202cf191440200c84bb5
parentd40ad902aea3794e145c8ce7b7fd99f72889e96b
s3-smbd: use fruit:model string for mDNS registration

With this change we now allow to modify the icon to represent Samba in
Finder. Possible values are at least:

fruit:model = iMac
fruit:model = MacBook
fruit:model = MacPro
fruit:model = Xserve
fruit:model = RackMac

Prior to this change we only displayed the correct icon when a mac
client negotiated the apple create context over SMB.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13746

Based on proposed patch from Rouven WEILER <Rouven_Weiler@gmx.net>

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Tue Jan 15 21:27:20 CET 2019 on sn-devel-144
source3/smbd/avahi_register.c