pkgsrc/sysutils/ntfsprogs/patches/patch-ag
agc f6726d0a8f Initial import of ntfsprogs-1.9.4 into the packages collection.
The Linux-NTFS project (http://linux-ntfs.sf.net/) aims to
	bring full support for the NTFS filesystem to the Linux
	operating system.  The ntfsprogs package currently consists of
	a static library and utilities such as mkntfs, ntfscat,
	ntfsls, ntfsresize, and ntfsundelete (for a full list of
	included utilities see man 8 ntfsprogs after installation).

Provided in PR 27119 by Darrin B.  Jewell, modified by myself to
remove dylib files from PLIST, add NetBSD statvfs compatibility, and
quieten a warning in one of the patches.

Darrin's patches perform the following changes:
  . provide for redirection of error output without having an lvalue stderr
  . support for NetBSD disklabels
  . fix for ntfs_attr_pread to avoid reading a partial block
  . workaround for darwin sys/mount.h namespace pollution

This package is currently configured with the gnome-vfs module disabled.
2004-10-05 12:39:38 +00:00

18 lines
401 B
Text

$NetBSD: patch-ag,v 1.1.1.1 2004/10/05 12:39:38 agc Exp $
--- ntfsprogs/ntfsresize.c.orig Sat Sep 4 06:16:32 2004
+++ ntfsprogs/ntfsresize.c
@@ -483,12 +483,9 @@ static int parse_options(int argc, char
}
}
- stderr = stdout;
-
#ifdef DEBUG
if (!opt.debug)
- if (!(stderr = fopen("/dev/null", "rw")))
- perr_exit("Couldn't open /dev/null");
+ ntfs_err_out = NULL;
#endif
if (ver)