opnsense-src/usr.sbin/mountd
Rick Macklem 2773c07181 mountd: Fix updating the network/host(s) for an exports line
Mountd reloads the exports(5) file(s) when it receives a SIGHUP
and then compares the old and new exports, updating any ones that
have changed in the kernel.

Without this patch, mountd failed to recognize that a network/host(s)
had changed, if there was no other change to the exports line.
As such, the change of network/hosts(s) did not take effect until
the mountd daemon was (re)started.

This patch fixes the code so that it checks for changes in
the network/host(s) list for an exports line.

PR:	286260
Approved by:	re (cperciva)

(cherry picked from commit 68daa781c1f12e1cfef768030eaff970c3d35543)
(cherry picked from commit 37abcf06f2100eeca41dbd67f8ca8228903ce5e8)
2025-05-04 12:13:49 -07:00
..
exports.5 exports.5: Document the current behavior of -alldirs 2025-01-19 16:00:35 -08:00
Makefile Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
mountd.8 mound.8: Document the new -a command line option 2025-01-19 15:58:13 -08:00
mountd.c mountd: Fix updating the network/host(s) for an exports line 2025-05-04 12:13:49 -07:00
netgroup.5 Remove $FreeBSD$: one-line nroff pattern 2023-08-16 11:55:15 -06:00
pathnames.h Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:23 -06:00