head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.4 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2011.07.09.17.22.43; author tron; state dead; branches; next 1.1; 1.1 date 2011.07.09.15.27.11; author tron; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2011.07.09.15.27.11; author tron; state Exp; branches; next ; desc @@ 1.2 log @Remove work arounds for a crash under NetBSD which are no longer necessary after the latest bug fix for "librefuse": http://mail-index.netbsd.org/source-changes/2011/07/09/msg024440.html @ text @$NetBSD: patch-ad,v 1.1 2011/07/09 15:27:11 tron Exp $ Avoid NULL pointer access with "librefuse" under NetBSD. --- fuse-ext2/fuse-ext2.h.orig 2009-11-09 16:31:37.000000000 +0000 +++ fuse-ext2/fuse-ext2.h 2011-07-09 16:15:41.000000000 +0100 @@@@ -71,12 +71,17 @@@@ { struct fuse_context *mycontext=fuse_get_context(); struct extfs_data *e2data=mycontext->private_data; + ext2_filsys e2fs = e2data->e2fs; + if (e2fs == NULL) { + return NULL; + } + time_t now=time(NULL); if ((now - e2data->last_flush) > FLUSH_BITMAPS_TIMEOUT) { ext2fs_write_bitmaps(e2data->e2fs); e2data->last_flush=now; } - return (ext2_filsys) e2data->e2fs; + return e2fs; } #if ENABLE_DEBUG @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Import new "fuse-ext2" package: Fuse-ext2 is a multi OS FUSE module to mount ext2 and ext3 file system devices and/or images with read write support. Please note that this file-system only works under NetBSD if the "librefuse" library on your system contains this bug fix: - http://mail-index.netbsd.org/source-changes/2011/07/09/msg024410.html - http://releng.netbsd.org/cgi-bin/req-5.cgi?show=1648 @ text @@