diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-18 15:39:45 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-18 15:39:45 +0000 |
commit | dc872b1ebe533874890dc2c44a18e50367c0b531 (patch) | |
tree | 4ab6e4e5d9452e667c0550eae7790372e3aa2678 /lib/mountlist.h | |
parent | 3c13c953a825afb19318776875795d17bfe4ea3e (diff) | |
download | coreutils-dc872b1ebe533874890dc2c44a18e50367c0b531.tar.xz |
(ME_REMOTE): Recognize as remote any file system
that has an Fs_type with the `nfs' (any case) prefix.
This is necessary at least for AIX 5.1 when it uses the
MOUNTED_GETMNTENT1 code. Reported by Mike Jetzer.
Diffstat (limited to 'lib/mountlist.h')
-rw-r--r-- | lib/mountlist.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/mountlist.h b/lib/mountlist.h index 8aab8ff95..a19f5b774 100644 --- a/lib/mountlist.h +++ b/lib/mountlist.h @@ -1,5 +1,5 @@ /* mountlist.h -- declarations for list of mounted filesystems - Copyright (C) 1991, 1992, 1998, 2000-2002 Free Software Foundation, Inc. + Copyright (C) 1991, 1992, 1998, 2000-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -49,10 +49,12 @@ struct mount_entry *read_filesystem_list PARAMS ((int need_fs_type)); #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 and its Fs_name starts with `//') + or if Fs_type starts with `nfs'. */ # define ME_REMOTE(Fs_name, Fs_type) \ (strchr ((Fs_name), ':') != 0 \ || ((Fs_name)[0] == '/' \ && (Fs_name)[1] == '/' \ - && STREQ (Fs_type, "smbfs"))) + && STREQ (Fs_type, "smbfs")) \ + || (strncasecmp (Fs_type, "nfs", 3) == 0)) #endif |