trasz
eea3157fa4
Add SPDX tags for automount(8) et al.
...
MFC after: 2 weeks
2018-01-24 16:39:02 +00:00
trasz
74f4f2e99d
Revert r317804; apparently I forgot the auto_master syntax.
...
MFC after: 2 weeks
2017-05-04 19:55:32 +00:00
trasz
9bc2b16cd9
Make automount(8) error out when the map name is missing.
...
MFC after: 2 weeks
2017-05-04 19:41:19 +00:00
bapt
8204e4e32a
Remove usage of _WITH_GETLINE from usr.sbin
2016-07-30 01:10:05 +00:00
trasz
efed0a7377
The <libutil.h> is an ordinary header file; should sort just like any other.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2016-01-24 18:11:36 +00:00
trasz
29dcbee988
Rework the concat() algorithm to be correct in all cases.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-13 11:26:02 +00:00
trasz
e2d017a584
Make "automount -LL -o whatever" present options in the same order
...
as used by automountd(8).
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:36:08 +00:00
trasz
e47fa13bc5
Make concat() accept NULL arguments.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-12 12:17:15 +00:00
trasz
6892ebe639
Fix handling of direct maps, broken in r275756. Previously, running
...
automount(8) would unmount direct map trigger nodes every second time.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 11:59:33 +00:00
trasz
1970982572
Refactor.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-10 09:53:15 +00:00
trasz
155cef1fdb
Make things more readable; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:31:33 +00:00
trasz
9d17bb3d2b
Remove some particularly bad code; no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 15:20:12 +00:00
trasz
558260a403
Fix memory leak.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:21:00 +00:00
trasz
622e1a5d99
Improve separated_concat() to properly handle the case of concatenating
...
"/" and "/foo".
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 13:00:59 +00:00
trasz
8822ff21ce
Minor optimization/cleanup in node_path(); no functional changes.
...
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2015-03-09 11:59:58 +00:00
trasz
cb41c48320
Fix bug that made automount(8) never unmount stale autofs(5) mounts,
...
ie mounts for entries that were there in auto_master(5), and then
got removed.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-12-14 10:49:22 +00:00
trasz
1687a6636a
Make automountd(8) inform autofs(4) whether directory being handled can
...
have wildcards. This makes it possible for autofs(4) to avoid requesting
automountd(8) action on access to nonexistent nodes - unless wildcards
are actually used.
Note that this change breaks ABI for automountd(8).
Tested by: dhw@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-15 09:28:45 +00:00
trasz
4c1564fe91
Remove call to access(2) which didn't serve any purpose, and make it more
...
tolerant to errors.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
2014-10-07 19:08:02 +00:00
trasz
3253f3d751
Fix thinko that, with two map entries like shown below, in that order,
...
made automountd(8) mix them up: trying to access the second one would
trigger mount for the first one.
foo host:/foo
foobar host:/foobar
PR: 193584
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
2014-09-23 19:12:06 +00:00
trasz
fc2af22220
Fix handling of keys in executable maps. Previously it was broken for keys
...
containing whitespace.
PR: 192947
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-24 12:32:26 +00:00
trasz
19be009a4f
Add "nobrowse" option. Previously automountd(8) always behaved as if
...
it was set, now it's conditional.
PR: 192862
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-23 12:00:45 +00:00
trasz
70e59e5f25
Don't fail on executable maps that return no entries. This turns useless
...
error message into useful one.
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-23 11:51:46 +00:00
trasz
a07b17da6a
Use __FBSDID() properly.
...
Suggested by: pluknet@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
2014-08-21 15:07:25 +00:00
trasz
cac9beab7d
Bring in the new automounter, similar to what's provided in most other
...
UNIX systems, eg. MacOS X and Solaris. It uses Sun-compatible map format,
has proper kernel support, and LDAP integration.
There are still a few outstanding problems; they will be fixed shortly.
Reviewed by: allanjude@, emaste@, kib@, wblock@ (earlier versions)
Phabric: D523
MFC after: 2 weeks
Relnotes: yes
Sponsored by: The FreeBSD Foundation
2014-08-17 09:44:42 +00:00