From: Jim Meyering Date: Thu, 20 Jul 2006 08:34:15 +0000 (+0000) Subject: [ME_REMOTE]: Filter out cifs. X-Git-Tag: v6.0~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e41860c414920934c19ad2224cd132438ddde25;p=thirdparty%2Fcoreutils.git [ME_REMOTE]: Filter out cifs. Reported by Toralf Förster in . --- diff --git a/lib/mountlist.c b/lib/mountlist.c index 0b21a6fa8b..3774c8e4ec 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