diff options
author | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-10-22 14:46:30 +0800 |
---|---|---|
committer | marcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059> | 2004-10-22 14:46:30 +0800 |
commit | 47ef851e745f893690653717bdd4600c7197a998 (patch) | |
tree | e2a565bdf654f0334498c86783e9b092012a4010 /sysutils/gnomesystemtools | |
parent | 3f87044852a0785f0611e03e93643a3ad5b5c711 (diff) | |
download | marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.tar marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.tar.gz marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.tar.bz2 marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.tar.lz marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.tar.xz marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.tar.zst marcuscom-ports-47ef851e745f893690653717bdd4600c7197a998.zip |
More Perl 5.00503 fixes.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@3007 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'sysutils/gnomesystemtools')
-rw-r--r-- | sysutils/gnomesystemtools/files/patch-backends_replace.pl.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sysutils/gnomesystemtools/files/patch-backends_replace.pl.in b/sysutils/gnomesystemtools/files/patch-backends_replace.pl.in new file mode 100644 index 000000000..7f7cce28e --- /dev/null +++ b/sysutils/gnomesystemtools/files/patch-backends_replace.pl.in @@ -0,0 +1,34 @@ +--- backends/replace.pl.in.orig Fri Oct 22 02:41:56 2004 ++++ backends/replace.pl.in Fri Oct 22 02:42:48 2004 +@@ -1113,19 +1113,19 @@ + + return -1 if (!&gst_replace_interfaces_iface_stanza_locate ($buff, \$line_no, $iface)); + +- delete $$buff[$line_no]; ++ splice @{$buff},$line_no,1; + $line_no ++; + + while (&gst_replace_interfaces_get_next_option ($buff, \$line_no) != -1) + { +- delete $$buff[$line_no]; ++ splice @{$buff},$line_no,1; + $line_no ++; + } + + $line_no = 0; + if (&gst_replace_interfaces_auto_stanza_locate ($buff, \$line_no, $iface)) + { +- delete $$buff[$line_no]; ++ splice @{$buff},$line_no,1; + } + + &gst_file_buffer_clean ($buff); +@@ -1663,7 +1663,7 @@ + } + else + { +- delete $$buff[$i]; ++ splice @{$buff},$i,1; + } + } + } |