X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fmountlist.c;h=6f7d07cbc1b9eb970801d2669e2ffcd29c499b15;hb=999775b691c8778c10b4787178805280dc4a8183;hp=4784140a14d95af089351a5f4e40d98e1898dffa;hpb=ed3c5c90e5da426480613c6cf4b8b2be526f0398;p=gnulib.git diff --git a/lib/mountlist.c b/lib/mountlist.c index 4784140a1..6f7d07cbc 100644 --- a/lib/mountlist.c +++ b/lib/mountlist.c @@ -84,7 +84,7 @@ extern int errno; # include #endif -#ifdef MOUNTED_NEXT_DEV /* BeOS. */ +#ifdef MOUNTED_FS_STAT_DEV /* BeOS. */ # include # include #endif @@ -417,7 +417,7 @@ read_filesystem_list (int need_fs_type) } #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 @@ read_filesystem_list (int need_fs_type) 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 @@ read_filesystem_list (int need_fs_type) free (re); } } -#endif /* MOUNTED_NEXT_DEV */ +#endif /* MOUNTED_FS_STAT_DEV */ #if defined (MOUNTED_GETFSSTAT) /* __alpha running OSF_1 */ {