Update of /cvsroot/fink/experimental/dmacks/scripts
In directory vz-cvs-3.sog:/tmp/cvs-serv5539
Modified Files:
fink-package-precedence
Log Message:
more safety against non-canonical paths to .h
Index: fink-package-precedence
===================================================================
RCS file: /cvsroot/fink/experimental/dmacks/scripts/fink-package-precedence,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- fink-package-precedence 12 May 2012 14:24:19 -0000 1.18
+++ fink-package-precedence 11 Jun 2012 15:48:47 -0000 1.19
@@ -200,10 +200,11 @@
my @chunk = splice @fink_headers, 0, 100;
print "\t$progress - ", ($progress+=@chunk)-1, "\n";
- # dpkg only knows actual filenames (foo/bar.h) not relative
- # spaghetti to them (foo/bar/../bar.h)
foreach (@chunk) {
+ s/\/\.(?=\/)//g; # foo/./././bar/./quux ->
foo/bar/quux
if (/\.\./) {
+ # dpkg only knows actual filenames (foo/bar.h) not
+ # relative spaghetti to them (foo/bar/../bar.h)
$_ = abs_path($_);
}
}
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs