"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "test/ebtables_tempfile_rename.pl" between
ferm-2.5.1.tar.xz and ferm-2.6.tar.xz

About: ferm is a tool to maintain and setup complicated firewall rules.

ebtables_tempfile_rename.pl  (ferm-2.5.1.tar.xz):ebtables_tempfile_rename.pl  (ferm-2.6.tar.xz)
#!/usr/bin/perl -w #!/usr/bin/perl -w
# This script renames ebtables temporary file suffixes consistently # This script renames ebtables temporary file suffixes consistently
# from the result files so that tests can be done. # from the result files so that tests can be done.
use strict; use strict;
my $matches = 0; my $matches = 0;
while (<>) { while (<>) {
if ($matches eq 0) { s/--atomic-file \/tmp\/ferm.(\w+) /--atomic-file \/tmp\/ferm.1 /;
s/--atomic-file \/tmp\/ferm.(\w+) /--atomic-file \/tmp\/ferm.0 /; s/--atomic-file \/tmp\/ferm.(\w+) --atomic-save/--atomic-file \/tmp\/ferm.0
$matches = 1; --atomic-save/;
} else {
s/--atomic-file \/tmp\/ferm.(\w+) /--atomic-file \/tmp\/ferm.1 /;
}
print $_; print $_;
} }
 End of changes. 1 change blocks. 
6 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)