openbsd-ports/sysutils/nut/patches/patch-tools_nut-usbinfo_pl
sthen 2e38342377 update to NUT 2.6.4 rolling in the patch for CVE 2012-2944 which we had locally,
adding new device support, better snmp support for various devices, and many
other fixes and improvements.
2012-06-08 21:07:02 +00:00

16 lines
553 B
Plaintext

$OpenBSD: patch-tools_nut-usbinfo_pl,v 1.2 2012/06/08 21:07:02 sthen Exp $
skip backup copy of patched files
--- tools/nut-usbinfo.pl.orig Mon May 14 13:15:38 2012
+++ tools/nut-usbinfo.pl Fri Jun 8 10:56:20 2012
@@ -216,7 +216,7 @@ sub gen_usb_files
sub find_usbdevs
{
# maybe there's an option to turn off all .* files, but anyway this is stupid
- return $File::Find::prune = 1 if ($_ eq '.svn') || ($_ =~ /^\.#/);
+ return $File::Find::prune = 1 if ($_ eq '.svn') || ($_ =~ /^\.#/) || (m/.*\.orig/);
my $nameFile=$_;
my $lastComment="";