pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/fam Make the mntent compatibility layer work ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d3c08c90acc1
branches:  trunk
changeset: 481990:d3c08c90acc1
user:      jmmv <jmmv%pkgsrc.org@localhost>
date:      Sat Oct 16 14:40:23 2004 +0000

description:
Make the mntent compatibility layer work properly.  It was storing the list
of mounted filesystems in a local variable that was lost between calls to
the emulated getmntinfo function.

I'm not sure if this fixes any visible problem, but it probably should.
The code was randomly reading from memory before (running with debugging
enabled exposed the problem, for example).

Bump PKGREVISION to 3.

diffstat:

 sysutils/fam/Makefile         |  4 ++--
 sysutils/fam/distinfo         |  4 ++--
 sysutils/fam/patches/patch-ap |  7 ++++---
 3 files changed, 8 insertions(+), 7 deletions(-)

diffs (53 lines):

diff -r 6fd1ed9ac777 -r d3c08c90acc1 sysutils/fam/Makefile
--- a/sysutils/fam/Makefile     Sat Oct 16 14:11:23 2004 +0000
+++ b/sysutils/fam/Makefile     Sat Oct 16 14:40:23 2004 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.16 2004/10/03 00:18:14 tv Exp $
+# $NetBSD: Makefile,v 1.17 2004/10/16 14:40:23 jmmv Exp $
 #
 
 DISTNAME=              fam-2.7.0
-PKGREVISION=           2
+PKGREVISION=           3
 CATEGORIES=            sysutils devel
 MASTER_SITES=          ftp://oss.sgi.com/projects/fam/download/stable/ \
                        ftp://ftp.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \
diff -r 6fd1ed9ac777 -r d3c08c90acc1 sysutils/fam/distinfo
--- a/sysutils/fam/distinfo     Sat Oct 16 14:11:23 2004 +0000
+++ b/sysutils/fam/distinfo     Sat Oct 16 14:40:23 2004 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2004/05/04 08:23:38 mrg Exp $
+$NetBSD: distinfo,v 1.14 2004/10/16 14:40:23 jmmv Exp $
 
 SHA1 (fam-2.7.0.tar.gz) = 6c2316f02acf89a41c42ffc3d7fd9cf5eada83a8
 Size (fam-2.7.0.tar.gz) = 301974 bytes
@@ -14,6 +14,6 @@
 SHA1 (patch-aj) = 39391961fd7929d6a5fb49ecb492585cb821afaa
 SHA1 (patch-ak) = 48ddfcf9b7562832402a464437ca485249d371a1
 SHA1 (patch-ao) = 64827309bf91a2018629e28fef20109dde3fbf01
-SHA1 (patch-ap) = aab5c139a5941fab9c570db70c0d170a678872d2
+SHA1 (patch-ap) = 318e99722c78b1120d444d1421f04affc107d028
 SHA1 (patch-au) = 6bd507eb448b3fd126042759a3b6f70335401c5b
 SHA1 (patch-ax) = 950e9fd9de885f653f96aebaafc2269f489e2fad
diff -r 6fd1ed9ac777 -r d3c08c90acc1 sysutils/fam/patches/patch-ap
--- a/sysutils/fam/patches/patch-ap     Sat Oct 16 14:11:23 2004 +0000
+++ b/sysutils/fam/patches/patch-ap     Sat Oct 16 14:40:23 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: patch-ap,v 1.6 2004/05/07 12:06:47 cjep Exp $
+$NetBSD: patch-ap,v 1.7 2004/10/16 14:40:23 jmmv Exp $
+
 --- src/mntent_compat.c++.orig 2004-04-30 14:24:58.000000000 +0200
 +++ src/mntent_compat.c++      2004-04-30 14:28:45.000000000 +0200
 @@ -0,0 +1,191 @@
@@ -175,9 +176,9 @@
 +getmntent (FILE *fp)
 +{
 +#ifdef HAVE_SYS_STATVFS_H
-+      struct statvfs *mntbuf;
++      static struct statvfs *mntbuf;
 +#else
-+      struct statfs *mntbuf;
++      static struct statfs *mntbuf;
 +#endif
 +
 +      if (pos == -1 || mntsize == -1)



Home | Main Index | Thread Index | Old Index