bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] mountlist: recognize autofs-mounted remote file systems, to


From: Pádraig Brady
Subject: Re: [PATCH] mountlist: recognize autofs-mounted remote file systems, too
Date: Fri, 19 Feb 2016 17:52:41 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 19/02/16 01:41, Kamil Dudka wrote:
> Originally reported at: https://bugzilla.redhat.com/1309247
> * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
> "-hosts" because it is used by autofs to mount remote file systems.
> ---
>  ChangeLog       | 6 ++++++
>  lib/mountlist.c | 6 ++++--
>  2 files changed, 10 insertions(+), 2 deletions(-)
> 
> diff --git a/ChangeLog b/ChangeLog
> index d2cb956..ba1fc39 100644
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,9 @@
> +2016-02-19  Kamil Dudka  <address@hidden>
> +     mountlist: recognize autofs-mounted remote file systems, too
> +     Originally reported at: https://bugzilla.redhat.com/1309247
> +     * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
> +     "-hosts" because it is used by autofs to mount remote file systems.
> +
>  2016-02-10  Paul Eggert  <address@hidden>
>  
>       stdalign: port to older HP and IBM cc
> diff --git a/lib/mountlist.c b/lib/mountlist.c
> index 829b31d..bb4e4ee 100644
> --- a/lib/mountlist.c
> +++ b/lib/mountlist.c
> @@ -217,13 +217,15 @@ me_remote (char const *fs_name, char const *fs_type 
> _GL_UNUSED)
>  
>  #ifndef ME_REMOTE
>  /* A file system is "remote" if its Fs_name contains a ':'
> -   or if (it is of type (smbfs or cifs) and its Fs_name starts with '//').  
> */
> +   or if (it is of type (smbfs or cifs) and its Fs_name starts with '//')
> +   or Fs_name is equal to "-hosts" (used by autofs to mount remote fs).  */
>  # define ME_REMOTE(Fs_name, Fs_type)            \
>      (strchr (Fs_name, ':') != NULL              \
>       || ((Fs_name)[0] == '/'                    \
>           && (Fs_name)[1] == '/'                 \
>           && (strcmp (Fs_type, "smbfs") == 0     \
> -             || strcmp (Fs_type, "cifs") == 0)))
> +             || strcmp (Fs_type, "cifs") == 0)) \
> +     || (strcmp("-hosts", Fs_name) == 0))
>  #endif
>  
>  #if MOUNTED_GETMNTINFO
> 

Pushed,

thanks,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]