components/coreutils/patches/mountlist.c.patch
author Mike Sullivan <Mike.Sullivan@Oracle.COM>
Mon, 11 Mar 2013 10:38:09 -0700
branchs11-update
changeset 2520 ceec631e74d1
parent 2399 20c46127e17a
child 1833 0edb05d72e6b
child 5249 8a7aa7f8367e
permissions -rw-r--r--
Close of build 10.

--- 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     \