- don't readmap on HUP for new mount. - add NIS_PARTIAL to map entry not found check and fix use after free bug.
28 lines
761 B
Diff
28 lines
761 B
Diff
autofs-5.0.3 - map type in map name fix
|
|
|
|
From: Ian Kent <raven@themaw.net>
|
|
|
|
Fix incorrect match of map type as a host name.
|
|
Actually the original patch didn't match upstream or RHEL
|
|
so this syncs the source with those. It appears the problem
|
|
was fixed here some time ago but slightly differently.
|
|
---
|
|
|
|
lib/master_tok.l | 4 +++-
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
|
|
|
|
--- autofs-5.0.3.orig/lib/master_tok.l
|
|
+++ autofs-5.0.3/lib/master_tok.l
|
|
@@ -202,7 +202,9 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--
|
|
}
|
|
}
|
|
|
|
- {MTYPE}/({DNSERVERSTR}|{DNATTRSTR}=)? {
|
|
+ {MTYPE} |
|
|
+ {MTYPE}/{DNSERVERSTR}{DNATTRSTR} |
|
|
+ {MTYPE}/{DNATTRSTR}= {
|
|
tlen = master_leng - 1;
|
|
if (bptr != buff && isblank(master_text[tlen])) {
|
|
strncat(buff, master_text, tlen);
|