From: Jarkko Hietaniemi Date: Fri, 22 Jan 1999 09:13:18 +0000 (+0000) Subject: nosuid getmntent() branch. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=32b3cf08c33ce13099612a2fa015ff215de6fc24;p=p5sagit%2Fp5-mst-13.2.git nosuid getmntent() branch. p4raw-id: //depot/cfgperl@2679 --- diff --git a/perl.c b/perl.c index 25111ad..c91c960 100644 --- a/perl.c +++ b/perl.c @@ -2148,7 +2148,7 @@ fd_on_nosuid_fs(int fd) on_nosuid = check_okay && (stfs.f_flags & PERL_MOUNT_NOSUID); # endif # else -# if defined(HAS_GETMNENT) && defined(HAS_HASMNTOPT) && defined(MNTOPT_NOSUID) +# if defined(HAS_GETMNTENT) && defined(HAS_HASMNTOPT) && defined(MNTOPT_NOSUID) FILE *mtab = fopen("/etc/mtab", "r"); struct mntent *entry; struct stat stb, fsb; diff --git a/perl.h b/perl.h index 9dd71e5..c7e328a 100644 --- a/perl.h +++ b/perl.h @@ -2783,15 +2783,13 @@ typedef struct am_table_short AMTS; #ifdef IAMSUID #ifdef I_SYS_STATVFS -# include -#else -# ifdef I_SYS_MOUNT -# include -# else -# ifdef I_MNTENT -# include -# endif -# endif +# include /* for f?statvfs() */ +#endif +#ifdef I_SYS_MOUNT +# include /* for *BSD f?statfs() */ +#endif +#ifdef I_MNTENT +# include /* for getmntent() */ #endif #endif /* IAMSUID */