components/coreutils/patches/mountlist.c.patch
author Rich Burridge <rich.burridge@oracle.com>
Tue, 02 May 2017 17:33:26 -0700
changeset 7964 d9801318ed3d
parent 7476 c2f56b2bf427
permissions -rw-r--r--
25981468 Build ilmbase and openexr with the GNU compilers

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	2016-11-30 16:10:17.136191581 +0000
+++ lib/mountlist.c	2016-11-30 16:33:57.209112678 +0000
@@ -222,11 +222,12 @@
 #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 '//')
-   or Fs_name is equal to "-hosts" (used by autofs to mount remote fs).  */
+/* 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 '//') 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              \
+    ((strchr (Fs_name, ':') != NULL && strcmp (Fs_type, "pcfs") != 0) \
      || ((Fs_name)[0] == '/'                    \
          && (Fs_name)[1] == '/'                 \
          && (strcmp (Fs_type, "smbfs") == 0     \