Gitlab Community Edition Instance
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bnachtw
dsmci
Commits
0683527c
Commit
0683527c
authored
Nov 29, 2019
by
bnachtw
Browse files
added a new sequence for escaping [ and ] -- patch distributed by Salvatore again
parent
00ca0745
Changes
1
Hide whitespace changes
Inline
Side-by-side
perl/dev-dsmci.pl
View file @
0683527c
...
...
@@ -52,6 +52,7 @@
# 2019-11-20 0.6.5 added a patch collecting all error and warning lines and write to an errorlog file
# Thanks to Salvatore again for this fix
# 2019-11-26 0.6.5.1 added some return codes
# 2019-11-29 0.6.5.2 added a new sequence for escaping "[" and "]" -- patch distributed by Salvatore again
#
# important notes
#
...
...
@@ -754,6 +755,8 @@ sub fork_backup_threads
$dir
=~
s{\#$}{}
;
# escape "$" if part of the name
$dir
=~
s{\$}{\\\$}g
;
# escape special [ and ] in paths
$dir
=~
s{([\[\]])}{\\$1}g
;
# backup commandline
$command
=
"
\"
$dsmcbin
\"
i
\"
$dir
\"
-optfile=
\"
$optfile
\"
-su=
$switcher
>>
$log_filename
2>&1
";
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment