sharesec: Check if share exists in configurationmaster
commit1410803713440caf29a40aec30516489d1944665
authorVinit Agnihotri <vagnihot@redhat.com>
Tue, 3 Dec 2024 05:51:09 +0000 (3 11:21 +0530)
committerGünther Deschner <gd@samba.org>
Fri, 10 Jan 2025 10:45:30 +0000 (10 10:45 +0000)
tree1d2dfb7cf677c8e9dfbd0b45f4e7350ca4c67659
parent78eb293e1cdd3635de0bcf46ffb9d842f27bcc9f
sharesec: Check if share exists in configuration

Load config from registry without share info and check if sharename
exists from configuration. This results into lesser delay for the same.

In case of view we load config with all shares to ensure we get all
shares for diplay purpose.

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

Signed-off-by: Vinit Agnihotri <vagnihot@redhat.com>
Reviewed-by: John Mulligan <jmulligan@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Jan 10 10:45:30 UTC 2025 on atb-devel-224
source3/utils/sharesec.c