mirror_zfs/lib/libshare
George Wilson 626abe164d zpool command complains about /etc/exports.d
If the /etc/exports.d directory does not exist, then we should only
create it when we're performing an action which already requires root
privileges.

This commit moves the directory creation to the enable/disable code
path which ensures that we have the appropriate privileges.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: George Wilson <gwilson@delphix.com>
Closes #10785
Closes #10934
2020-10-01 12:20:06 -07:00
..
os zpool command complains about /etc/exports.d 2020-10-01 12:20:06 -07:00
libshare_impl.h Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
libshare.c Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
Makefile.am Remove dependency on sharetab file and refactor sharing logic 2020-07-13 09:19:18 -07:00
nfs.h Implemented sharing datasets via NFS using libshare. 2011-07-06 09:20:28 -07:00
smb.h Fix static data to link with -fno-common 2020-02-06 09:25:29 -08:00