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 <kdu...@redhat.com> > + 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 <egg...@cs.ucla.edu> > > 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