components/coreutils/patches/mountlist.c.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Fri, 15 Jan 2016 13:34:30 -0800
changeset 5289 255be830c2e5
parent 2050 7c6a1559c620
child 7476 c2f56b2bf427
permissions -rw-r--r--
Close of build 91.

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     \