Properly detect remote mounted file systems with /usr/gnu/bin/df on Solaris.
See the comments in CR# 15595871 for more details.
This patch has not been passed upstream yet. It needs to be reworked into
a format that would be acceptable.
--- lib/mountlist.c.orig 2014-07-27 14:40:04.634723388 -0700
+++ lib/mountlist.c 2014-07-27 14:40:58.062935347 -0700
@@ -212,10 +212,11 @@
#endif
#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 '//'). */
+/* A file system is `remote' if its Fs_name contains a `:' (and isn't of
++ type pcfs), or if (it is of type (smbfs or cifs) and its Fs_name starts
++ with `//'). */
# define ME_REMOTE(Fs_name, Fs_type) \
- (strchr (Fs_name, ':') != NULL \
+ ((strchr (Fs_name, ':') != NULL && strcmp (Fs_type, "pcfs") != 0) \
|| ((Fs_name)[0] == '/' \
&& (Fs_name)[1] == '/' \
&& (strcmp (Fs_type, "smbfs") == 0 \