components/coreutils/patches/mountlist.c.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 04 Feb 2013 11:39:22 -0800
changeset 1141 b4714de15fb2
parent 987 810b92005f34
child 1833 0edb05d72e6b
child 5249 8a7aa7f8367e
permissions -rw-r--r--
Close of build 15.

--- coreutils-8.16/lib/mountlist.c.orig	2012-04-18 07:41:27.645801306 -0700
+++ coreutils-8.16/lib/mountlist.c	2012-04-18 07:42:23.796304225 -0700
@@ -187,10 +187,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     \