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:31:45 +0000 (12:31 +0100)
commit6e0514d273e3fe5e85a48ee4b1c3e3f066f1b6c3
tree6cf2e89a223a717b5c0b073f1438c915b5bf211f
parent22d5649e895c41875ecbb3403d4b14753e12c1a4
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