--- rpms/e-smith-portforwarding/sme7/e-smith-portforwarding-1.2.0-migratedb.patch 2007/06/26 18:35:58 1.1 +++ rpms/e-smith-portforwarding/sme7/e-smith-portforwarding-1.2.0-migratedb.patch 2007/06/27 18:30:33 1.2 @@ -6,7 +6,7 @@ diff -Nur -x '*.orig' -x '*.rej' e-smith + my %FDB; + foreach my $proto ('TCP', 'UDP') { + $FDB{$proto} = esmith::ConfigDB->open("portforward_" . lc($proto)) -+ || die "Can't open portforward" . lc($proto) . " database: $!\n"; ++ || esmith::ConfigDB->create("portforward_" . lc($proto)); + + my %rules = split ',', $DB->get_prop_and_delete('masq', "${proto}Forwards") + || next;