components/coreutils/patches/mountlist.c.patch
author Petr Cvachoucek <petr.cvachoucek@oracle.com>
Tue, 19 Jun 2012 11:55:25 -0700
changeset 876 46e15d3fb303
parent 581 ac0dbbad1d49
child 987 810b92005f34
child 3083 6826bd655a25
permissions -rw-r--r--
7162956 LSI SNMP subagent get/getNext/set requests are failing on SPARC

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