+2016-02-19 Kamil Dudka <kdudka@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-19 Paul Eggert <eggert@cs.ucla.edu>
signbit: port to C++ with GCC 6
#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