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)
committerKarolin Seeger <kseeger@samba.org>
Thu, 21 Feb 2019 11:30:41 +0000 (12:30 +0100)
commit7621c622f83f90c213bfbf2b17b8b3a78510ecf2
tree66e6385fdf48f13b71ab2dcf35223717cd4b2f60
parente21e24d8345e441d639020affc1f6ee59762725d
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

(cherry picked from commit 538ce72f1b2fa78450e3b711e58bd0e238faf466)
source3/smbd/avahi_register.c