Mercurial > hg > octave-nkf > gnulib-hg
changeset 2677:a15fc2b3bc82
Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
per change in ../m4/ls-mntd-fs.m4.
(read_filesystem_list): Ignore symbolic links.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sat, 01 Jul 2000 13:35:28 +0000 |
parents | 81bb89df6149 |
children | bf1c4d78e0cc |
files | lib/mountlist.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -84,7 +84,7 @@ # include <sys/fs_types.h> #endif -#ifdef MOUNTED_NEXT_DEV /* BeOS. */ +#ifdef MOUNTED_FS_STAT_DEV /* BeOS. */ # include <fs_info.h> # include <dirent.h> #endif @@ -417,7 +417,7 @@ } #endif /* MOUNTED_GETMNT. */ -#if defined (MOUNTED_NEXT_DEV) /* BeOS */ +#if defined (MOUNTED_FS_STAT_DEV) /* BeOS */ { /* The next_dev() and fs_stat_dev() system calls give the list of all filesystems, including the information returned by statvfs() @@ -468,7 +468,7 @@ strcpy (name + 1, d->d_name); } - if (stat (name, &statbuf) >= 0 && S_ISDIR (statbuf.st_mode)) + if (lstat (name, &statbuf) >= 0 && S_ISDIR (statbuf.st_mode)) { struct rootdir_entry *re; @@ -520,7 +520,7 @@ free (re); } } -#endif /* MOUNTED_NEXT_DEV */ +#endif /* MOUNTED_FS_STAT_DEV */ #if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */ {