head	1.2;
access;
symbols
	RELEASE_8_3_0:1.2
	RELEASE_9_0_0:1.2
	RELEASE_7_4_0:1.2
	RELEASE_8_2_0:1.2
	RELEASE_6_EOL:1.2
	RELEASE_8_1_0:1.2
	RELEASE_7_3_0:1.2
	RELEASE_8_0_0:1.2
	RELEASE_7_2_0:1.2
	RELEASE_7_1_0:1.2
	RELEASE_6_4_0:1.2
	RELEASE_5_EOL:1.2
	RELEASE_7_0_0:1.2
	RELEASE_6_3_0:1.2
	PRE_XORG_7:1.2
	RELEASE_4_EOL:1.2
	RELEASE_6_2_0:1.2
	RELEASE_6_1_0:1.2
	RELEASE_5_5_0:1.2
	RELEASE_6_0_0:1.2
	RELEASE_5_4_0:1.2
	RELEASE_4_11_0:1.2
	RELEASE_5_3_0:1.2
	RELEASE_4_10_0:1.2
	RELEASE_5_2_1:1.2
	RELEASE_5_2_0:1.2
	RELEASE_4_9_0:1.2
	RELEASE_5_1_0:1.2
	RELEASE_4_8_0:1.2
	RELEASE_5_0_0:1.2
	RELEASE_4_7_0:1.2
	RELEASE_4_6_2:1.2
	RELEASE_4_6_1:1.2
	RELEASE_4_6_0:1.2
	RELEASE_5_0_DP1:1.2
	RELEASE_4_5_0:1.2
	RELEASE_4_4_0:1.2
	RELEASE_4_3_0:1.2
	RELEASE_4_2_0:1.1;
locks; strict;
comment	@# @;


1.2
date	2001.03.20.21.29.25;	author obrien;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.02.04.00.03;	author nakai;	state Exp;
branches;
next	;


desc
@@


1.2
log
@Add dummy getmntent() func.

PR:		24570
Submitted by:	Roman Shterenzon<roman@@xpert.com>
@
text
@--- lib/fs.c.orig	Wed Jun 14 21:34:30 2000
+++ lib/fs.c	Tue Mar 20 22:24:58 2001
@@@@ -12,6 +12,11 @@@@
 /*@@only@@*/ /*@@null@@*/ static const char ** fsnames = NULL;
 static int numFilesystems = 0;
 
+/* dummy getmntent() for FreeBSD */
+our_mntent *getmntent(FILE *filep) {
+  return NULL;
+}
+
 void freeFilesystems(void)
 {
     if (filesystems) {
@@@@ -129,8 +134,10 @@@@
 #   if GETMNTENT_ONE || GETMNTENT_TWO
 	mtab = fopen(MOUNTED, "r");
 	if (!mtab) {
+/*
 	    rpmError(RPMERR_MTAB, _("failed to open %s: %s"), MOUNTED, 
 		     strerror(errno));
+*/
 	    return 1;
 	}
 #   elif HAVE_GETMNTINFO_R
@


1.1
log
@A patch to prepend unavoidable message.
@
text
@d1 15
a15 3
--- lib/fs.c.orig	Thu Nov  2 12:54:47 2000
+++ lib/fs.c	Thu Nov  2 12:55:32 2000
@@@@ -129,8 +129,10 @@@@
@

