summaryrefslogtreecommitdiffstats
path: root/recipes-security/bastille/files/FileContent.pm
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-security/bastille/files/FileContent.pm')
-rw-r--r--recipes-security/bastille/files/FileContent.pm16
1 files changed, 8 insertions, 8 deletions
diff --git a/recipes-security/bastille/files/FileContent.pm b/recipes-security/bastille/files/FileContent.pm
index 0a5d609..1ef89dd 100644
--- a/recipes-security/bastille/files/FileContent.pm
+++ b/recipes-security/bastille/files/FileContent.pm
@@ -10,8 +10,8 @@ B_blank_file
10B_insert_line_after 10B_insert_line_after
11B_insert_line_before 11B_insert_line_before
12B_insert_line 12B_insert_line
13B_append_line 13B:append_line
14B_prepend_line 14B:prepend_line
15B_replace_line 15B_replace_line
16B_replace_lines 16B_replace_lines
17B_replace_pattern 17B_replace_pattern
@@ -262,7 +262,7 @@ sub B_insert_line($$$$) {
262# 262#
263# Additionally, if $pattern is set equal to "", the line is always appended. 263# Additionally, if $pattern is set equal to "", the line is always appended.
264# 264#
265# B_append_line uses B_open_plus and B_close_plus, so that the file 265# B:append_line uses B_open_plus and B_close_plus, so that the file
266# modified is backed up... 266# modified is backed up...
267# 267#
268# Here's examples of where you might use this: 268# Here's examples of where you might use this:
@@ -273,7 +273,7 @@ sub B_insert_line($$$$) {
273# 273#
274########################################################################### 274###########################################################################
275 275
276sub B_append_line($$$) { 276sub B:append_line($$$) {
277 277
278 my ($filename,$pattern,$line_to_append) = @_; 278 my ($filename,$pattern,$line_to_append) = @_;
279 279
@@ -308,11 +308,11 @@ sub B_append_line($$$) {
308 308
309########################################################################### 309###########################################################################
310# &B_prepend_line ($filename,$pattern,$line_to_prepend) modifies $filename, 310# &B_prepend_line ($filename,$pattern,$line_to_prepend) modifies $filename,
311# pre-pending $line_to_prepend unless one or more lines in the file matches 311# pre-pending $line_to:prepend unless one or more lines in the file matches
312# $pattern. This is an enhancement to the prepend_line_if_no_such_line_exists 312# $pattern. This is an enhancement to the prepend_line_if_no_such_line_exists
313# idea. 313# idea.
314# 314#
315# B_prepend_line uses B_open_plus and B_close_plus, so that the file 315# B:prepend_line uses B_open_plus and B_close_plus, so that the file
316# modified is backed up... 316# modified is backed up...
317# 317#
318# Here's examples of where you might use this: 318# Here's examples of where you might use this:
@@ -322,7 +322,7 @@ sub B_append_line($$$) {
322# 322#
323########################################################################### 323###########################################################################
324 324
325sub B_prepend_line($$$) { 325sub B:prepend_line($$$) {
326 326
327 my ($filename,$pattern,$line_to_prepend) = @_; 327 my ($filename,$pattern,$line_to_prepend) = @_;
328 328
@@ -348,7 +348,7 @@ sub B_prepend_line($$$) {
348 348
349 # Log the action 349 # Log the action
350 &B_log("ACTION","Pre-pended the following line to $filename:\n"); 350 &B_log("ACTION","Pre-pended the following line to $filename:\n");
351 &B_log("ACTION","$line_to_prepend"); 351 &B_log("ACTION","$line_to:prepend");
352 } 352 }
353 else { 353 else {
354 $retval=0; 354 $retval=0;