Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
awit-dbackup
awit-dbackup
Commits
d2298f0b
Commit
d2298f0b
authored
Jul 11, 2014
by
Nigel Kukard
Browse files
Don't use bareword file handles
parent
114d194d
Changes
1
Hide whitespace changes
Inline
Side-by-side
dbackup
View file @
d2298f0b
...
...
@@ -340,9 +340,9 @@ if (defined($optctl{'exclude-fs-type'})) {
if
(
@
{
$config
{'
exclude-fs-type
'}}
>
0
)
{
# Pull in mounts
open
(
MOUNTS
,
"
<
/proc/mounts
")
open
(
my
$fh
,"
<
","
/proc/mounts
")
or
die
"
ERROR: Failed to open '/proc/mounts': $!
";
while
(
my
$line
=
<
MOUNTS
>
)
{
while
(
my
$line
=
<
$fh
>
)
{
chomp
(
$line
);
# Split off items we need
my
(
undef
,
$path
,
$type
)
=
split
(
/\s+/
,
$line
);
...
...
@@ -353,7 +353,7 @@ if (@{$config{'exclude-fs-type'}} > 0) {
}
}
}
close
(
MOUNTS
);
close
(
$fh
);
}
# Look for parallel versions of the compression program we going to use
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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