The proper fix is to use differnt header files.

        -hpa

Jeremy Fitzhardinge wrote:
> 
> Hi,
> 
> There was a problem where the autofs v3 kernel code was using the same
> AUTOFS_PROTO_VERSION as the v4 code, which confused autofs v3 user-mode code.
> 
> The basic problem is that linux/auto_fs.h doesn't describe just one interface
> version, but several (two in this case).  Similarly, the user-mode code doesn't
> talk "the" protocol version its header file happens to have in it, but the
> particular version it implements (ie, its independent of the header file it
> includes).
> 
> The quick fix is to rearrange the #defines so that everything gets the info it
> needs.  The better fix is to make the protocol version a particular party is
> talking distinct from the particular header file it includes.
> 
> The patch below is the quick fix, and is not too far off the proper fix (except
> I didn't want to modify the original autofs source at all).
> 
>         J
> [ Sorry if you see this twice: I forgot to forward it to the autofs list the
>   first time ]
> 
>   ------------------------------------------------------------------------
>                                       Name: autofs4-2.3.41-20000130.diff
>    autofs4-2.3.41-20000130.diff       Type: Plain Text (text/plain)
>                                   Encoding: 7bit
>                                Description: autofs4-2.3.41-20000130.diff

Reply via email to