]> git.pld-linux.org Git - packages/autofs.git/blob - autofs-5.0.2-timeout-option-parse-fix.patch
d5dac879ad2098fba2955368a5364d7667140f3c
[packages/autofs.git] / autofs-5.0.2-timeout-option-parse-fix.patch
1 diff --git a/CHANGELOG b/CHANGELOG
2 index 0e9dc51..054d4df 100644
3 --- a/CHANGELOG
4 +++ b/CHANGELOG
5 @@ -21,6 +21,7 @@
6  - if there's no "automount" entry in nsswitch.conf use "files" source.
7  - add LDAP schema discovery if no schema is configured.
8  - add random selection as a master map entry option.
9 +- fix couple of edge case parse fails of timeout option.
10  
11  18/06/2007 autofs-5.0.2
12  -----------------------
13 diff --git a/lib/master_tok.l b/lib/master_tok.l
14 index 013a15a..2735223 100644
15 --- a/lib/master_tok.l
16 +++ b/lib/master_tok.l
17 @@ -313,7 +313,7 @@ OPTTOUT             (-t{OPTWS}|-t{OPTWS}={OPTWS}|--timeout{OPTWS}|--timeout{OPTWS}={OPTWS})
18                 return(DDASH);
19         }
20  
21 -       {OPTTOUT} { return(OPT_TIMEOUT); }
22 +       {OPTTOUT}/{NUMBER} { return(OPT_TIMEOUT); }
23  
24         {NUMBER} {
25                 master_lval.longtype = atol(master_text);
This page took 0.435083 seconds and 2 git commands to generate.