aboutsummaryrefslogblamecommitdiff
path: root/archivers/rpm/files/patch-bi
blob: 2f4b57a890a30cb5cb694e9a61ff830d01a744d2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                           









                                                                       
--- 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