Blame SOURCES/autofs-5.0.9-fix-reset-flex-scan-buffer-on-init.patch
|
|
c8d72b |
autofs-5.0.9 - fix reset flex scan buffer on init
|
|
|
c8d72b |
|
|
|
c8d72b |
From: Ian Kent <ikent@redhat.com>
|
|
|
c8d72b |
|
|
|
c8d72b |
If a scan results in an error the flex scan buffer is sometimes
|
|
|
c8d72b |
not properly reset for the next scan.
|
|
|
c8d72b |
|
|
|
c8d72b |
This can result in an incorrect success return for a subsequent
|
|
|
c8d72b |
operation, such as a map re-read, for a master map line that's
|
|
|
c8d72b |
actually incorrect. Given the success return autofs tries to add
|
|
|
c8d72b |
a master map entry that doesn't have the needed information, such
|
|
|
c8d72b |
as the mount path, and a SEGV results.
|
|
|
c8d72b |
---
|
|
|
c8d72b |
CHANGELOG | 1 +
|
|
|
c8d72b |
lib/master_tok.l | 2 ++
|
|
|
c8d72b |
2 files changed, 3 insertions(+)
|
|
|
c8d72b |
|
|
|
c8d72b |
--- autofs-5.0.7.orig/CHANGELOG
|
|
|
c8d72b |
+++ autofs-5.0.7/CHANGELOG
|
|
|
c8d72b |
@@ -328,6 +328,7 @@
|
|
|
c8d72b |
- improve hostname lookup error logging.
|
|
|
c8d72b |
- allow period following macro in selector value.
|
|
|
c8d72b |
- fix macro expansion in selector values.
|
|
|
c8d72b |
+- fix reset flex scan buffer on init.
|
|
|
c8d72b |
|
|
|
c8d72b |
25/07/2012 autofs-5.0.7
|
|
|
c8d72b |
=======================
|
|
|
c8d72b |
--- autofs-5.0.7.orig/lib/master_tok.l
|
|
|
c8d72b |
+++ autofs-5.0.7/lib/master_tok.l
|
|
|
c8d72b |
@@ -448,6 +448,8 @@ void master_set_scan_buffer(const char *
|
|
|
c8d72b |
memset(buff, 0, sizeof(buff));
|
|
|
c8d72b |
optr = buff;
|
|
|
c8d72b |
|
|
|
c8d72b |
+ YY_FLUSH_BUFFER;
|
|
|
c8d72b |
+
|
|
|
c8d72b |
line = buffer;
|
|
|
c8d72b |
line_pos = &line[0];
|
|
|
c8d72b |
/*
|