Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
64b71fe3
Commit
64b71fe3
authored
Nov 14, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug 32: correctly parse 'df' output (untaint values)
parent
113f1e35
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
VZDump.pm
PVE/VZDump.pm
+3
-3
No files found.
PVE/VZDump.pm
View file @
64b71fe3
...
@@ -538,7 +538,7 @@ sub get_mount_info {
...
@@ -538,7 +538,7 @@ sub get_mount_info {
return
undef
if
!
$out
;
return
undef
if
!
$out
;
my
@res
=
split
(
/\s+/
,
$out
)
;
my
@res
=
$out
=~
m/^(\S+)\s+(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\d+)%\s+(.*)$/
;
return
undef
if
scalar
(
@res
)
!=
7
;
return
undef
if
scalar
(
@res
)
!=
7
;
...
@@ -552,7 +552,7 @@ sub get_mount_info {
...
@@ -552,7 +552,7 @@ sub get_mount_info {
sub
get_lvm_device
{
sub
get_lvm_device
{
my
(
$dir
,
$mapping
)
=
@_
;
my
(
$dir
,
$mapping
)
=
@_
;
my
$info
=
get_mount_info
(
$dir
);
my
$info
=
get_mount_info
(
$dir
);
return
undef
if
!
$info
;
return
undef
if
!
$info
;
...
@@ -682,7 +682,7 @@ sub exec_backup_task {
...
@@ -682,7 +682,7 @@ sub exec_backup_task {
$task
->
{
tmpdir
}
=
"
$opts
->{tmpdir}/vzdumptmp$$
";
$task
->
{
tmpdir
}
=
"
$opts
->{tmpdir}/vzdumptmp$$
";
}
else
{
}
else
{
# dumpdir is posix? then use it as temporary dir
# dumpdir is posix? then use it as temporary dir
my
$info
=
get_mount_info
(
$opts
->
{
dumpdir
});
my
$info
=
get_mount_info
(
$opts
->
{
dumpdir
});
if
(
$vmtype
eq
'
qemu
'
||
if
(
$vmtype
eq
'
qemu
'
||
grep
(
$_
eq
$info
->
{
fstype
},
@posix_filesystems
))
{
grep
(
$_
eq
$info
->
{
fstype
},
@posix_filesystems
))
{
$task
->
{
tmpdir
}
=
"
$opts
->{dumpdir}/
$basename
.tmp
";
$task
->
{
tmpdir
}
=
"
$opts
->{dumpdir}/
$basename
.tmp
";
...
...
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