components/coreutils/patches/mountlist.c.patch
author Rich Burridge <rich.burridge@oracle.com>
Fri, 15 Aug 2014 07:34:17 -0700
changeset 2050 7c6a1559c620
parent 1833 0edb05d72e6b
child 7476 c2f56b2bf427
permissions -rw-r--r--
PSARC 2014/271 GNU coreutils 8.23 18527328 Update GNU coreutils to the latest version

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     \