6890527 /usr/gnu/bin/df -l doesn't think that a locally-connected USB stick is local
authorRich Burridge <rich.burridge@oracle.com>
Mon, 14 Nov 2011 09:16:05 -0800
changeset 581 ac0dbbad1d49
parent 580 abb7ba207fc9
child 582 f788d69e0553
6890527 /usr/gnu/bin/df -l doesn't think that a locally-connected USB stick is local
components/coreutils/patches/mountlist.c.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/coreutils/patches/mountlist.c.patch	Mon Nov 14 09:16:05 2011 -0800
@@ -0,0 +1,26 @@
+*** coreutils-8.5/lib/mountlist.c.orig	Wed Nov  9 06:19:54 2011
+--- coreutils-8.5/lib/mountlist.c	Wed Nov  9 07:25:30 2011
+***************
+*** 157,166 ****
+  #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 `//').  */
+  # define ME_REMOTE(Fs_name, Fs_type)            \
+!     (strchr (Fs_name, ':') != NULL              \
+       || ((Fs_name)[0] == '/'                    \
+           && (Fs_name)[1] == '/'                 \
+           && (strcmp (Fs_type, "smbfs") == 0     \
+--- 157,167 ----
+  #endif
+  
+  #ifndef ME_REMOTE
+! /* 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 && strcmp (Fs_type, "pcfs") != 0) \
+       || ((Fs_name)[0] == '/'                    \
+           && (Fs_name)[1] == '/'                 \
+           && (strcmp (Fs_type, "smbfs") == 0     \