summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-07-20 08:34:15 +0000
committerJim Meyering <jim@meyering.net>2006-07-20 08:34:15 +0000
commit6e41860c414920934c19ad2224cd132438ddde25 (patch)
tree67b6e8ba3b510f81f4f5afdc92305d140216a60a
parent6e31234fbb5a383c52dcd592f473db64f5c7fc77 (diff)
downloadcoreutils-6e41860c414920934c19ad2224cd132438ddde25.tar.xz
[ME_REMOTE]: Filter out cifs.
Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
-rw-r--r--lib/mountlist.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mountlist.c b/lib/mountlist.c
index 0b21a6fa8..3774c8e4e 100644
--- a/lib/mountlist.c
+++ b/lib/mountlist.c
@@ -153,12 +153,13 @@ char *strstr ();
#ifndef ME_REMOTE
/* A file system is `remote' if its Fs_name contains a `:'
- or if (it is of type smbfs and its Fs_name starts with `//'). */
+ 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))
+ && (strcmp (Fs_type, "smbfs") == 0 \
+ || strcmp (Fs_type, "cifs") == 0)))
#endif
#if MOUNTED_GETMNTINFO