components/coreutils/patches/mountlist.c.patch
author Rich Burridge <rich.burridge@oracle.com>
Fri, 21 Sep 2012 11:29:34 -0700
changeset 987 810b92005f34
parent 581 ac0dbbad1d49
child 1833 0edb05d72e6b
child 5249 8a7aa7f8367e
permissions -rw-r--r--
PSARC 2012/170 GNU coreutils 8.16 PSARC 2012/291 Remove /usr/gnu/bin/whoami 7161373 Update coreutils to version 8.16 7177497 Remove GNU version of whoami in /usr/gnu/bin
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
987
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     1
--- coreutils-8.16/lib/mountlist.c.orig	2012-04-18 07:41:27.645801306 -0700
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     2
+++ coreutils-8.16/lib/mountlist.c	2012-04-18 07:42:23.796304225 -0700
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     3
@@ -187,10 +187,11 @@
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     4
 #endif
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     5
 
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     6
 #ifndef ME_REMOTE
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     7
-/* A file system is "remote" if its Fs_name contains a ':'
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     8
-   or if (it is of type (smbfs or cifs) and its Fs_name starts with '//').  */
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
     9
+/* A file system is `remote' if its Fs_name contains a `:' (and isn't of 
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    10
+   type pcfs), or if (it is of type (smbfs or cifs) and its Fs_name starts
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    11
+   with `//').  */
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    12
 # define ME_REMOTE(Fs_name, Fs_type)            \
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    13
-    (strchr (Fs_name, ':') != NULL              \
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    14
+    ((strchr (Fs_name, ':') != NULL && strcmp (Fs_type, "pcfs") != 0) \
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    15
      || ((Fs_name)[0] == '/'                    \
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    16
          && (Fs_name)[1] == '/'                 \
810b92005f34 PSARC 2012/170 GNU coreutils 8.16
Rich Burridge <rich.burridge@oracle.com>
parents: 581
diff changeset
    17
          && (strcmp (Fs_type, "smbfs") == 0     \