Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 299606 Details for
Bug 435960
autofs with map file auto.nis not working, error: automount master_error: syntax error while parsing map
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to prevent tokenizer getting confused with map type in map name
autofs-5.0.3-map-type-in-map-name.patch (text/plain), 1.62 KB, created by
Ian Kent
on 2008-03-30 03:52:16 UTC
(
hide
)
Description:
Patch to prevent tokenizer getting confused with map type in map name
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2008-03-30 03:52:16 UTC
Size:
1.62 KB
patch
obsolete
>diff --git a/CHANGELOG b/CHANGELOG >index af5a1b0..76f2477 100644 >--- a/CHANGELOG >+++ b/CHANGELOG >@@ -12,6 +12,7 @@ > - update fix expire working harder than needed. > - add missing check for zero length NIS key (Wengang Wang). > - init SASL callbacks on every ldap lookup library load. >+- fix incorrect match of map type name when included in map name. > > 14/01/2008 autofs-5.0.3 > ----------------------- >diff --git a/lib/master_tok.l b/lib/master_tok.l >index b379940..4bbe033 100644 >--- a/lib/master_tok.l >+++ b/lib/master_tok.l >@@ -77,6 +77,7 @@ int my_yyinput(char *, int); > char buff[1024]; > char *bptr; > char *optr = buff; >+unsigned int tlen; > > %} > >@@ -190,13 +191,27 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo > {OPTWS}\\\n{OPTWS} {} > > {MULTI} { >- strcpy(master_lval.strtype, master_text); >- return(MULTITYPE); >+ tlen = master_leng - 1; >+ if (bptr != buff && isblank(master_text[tlen])) { >+ strncat(buff, master_text, tlen); >+ bptr += tlen; >+ yyless(tlen); >+ } else { >+ strcpy(master_lval.strtype, master_text); >+ return(MULTITYPE); >+ } > } > > {MTYPE} { >- strcpy(master_lval.strtype, master_text); >- return(MAPTYPE); >+ tlen = master_leng - 1; >+ if (bptr != buff && isblank(master_text[tlen])) { >+ strncat(buff, master_text, tlen); >+ bptr += tlen; >+ yyless(tlen); >+ } else { >+ strcpy(master_lval.strtype, master_text); >+ return(MAPTYPE); >+ } > } > > {MULTISEP} { return(DDASH); } >@@ -226,7 +241,7 @@ OPTNTOUT (-n{OPTWS}|-n{OPTWS}={OPTWS}|--negative-timeout{OPTWS}|--negative-timeo > yyless(0); > } > >- {DNSERVERSTR} { >+ {DNSERVERSTR}{DNATTRSTR} { > BEGIN(DNSTR); > yyless(0); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 435960
:
296991
|
296992
|
296994
| 299606