Tighten the check for improper GConf schema handling so that we only look in

the GConf schemas directory.

Reported by:	ftp/pure-ftpd via pav
This commit is contained in:
Joe Marcus Clarke 2004-07-17 15:48:45 +00:00
parent 8dacdcdda1
commit 73462092f7
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=21547

View file

@ -4,7 +4,7 @@
# gconf.pl - a script to add proper gconf schema handling to port PLISTs
# usage: gconf.pl [plist] [plist] [...]
#
# $Id: gconf.pl,v 1.1 2004-06-27 21:41:07 marcus Exp $
# $Id: gconf.pl,v 1.2 2004-07-17 15:48:45 marcus Exp $
#
use strict;
@ -28,7 +28,7 @@ foreach (@ARGV) {
for (my $i = 0 ; $i < scalar(@file) ; $i++) {
my ($install, $uninstall);
next unless $file[$i] =~ /\.schemas?\n$/;
next unless $file[$i] =~ m|^etc/gconf/schemas/.*\.schemas?\n$|;
my $schema = $file[$i];
chomp $schema;
$uninstall =