projects
/
debian
/
amanda
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Debian patch 2.5.1p3-1
[debian/amanda]
/
changer-src
/
chg-chio.pl.in
diff --git
a/changer-src/chg-chio.pl.in
b/changer-src/chg-chio.pl.in
index bb9d5a07b4d653608f7aefac75102a7e4a4ac631..79c7a393b05e237f464854cdc92b97b58077ad5a 100644
(file)
--- a/
changer-src/chg-chio.pl.in
+++ b/
changer-src/chg-chio.pl.in
@@
-41,6
+41,9
@@
require 5.001;
use English;
use Getopt::Long;
use English;
use Getopt::Long;
+delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV', 'PATH'};
+$ENV{'PATH'} = "/usr/bin:/usr/sbin:/sbin:/bin";
+
$| = 1;
if (-d "@AMANDA_DBGDIR@") {
$| = 1;
if (-d "@AMANDA_DBGDIR@") {
@@
-68,11
+71,13
@@
if ( "@USE_VERSION_SUFFIXES@" eq "yes" ) {
chomp ($tapeDevice = `$sbindir/amgetconf$SUF tapedev 2>&1`);
die "tapedev not found in amanda.conf"
chomp ($tapeDevice = `$sbindir/amgetconf$SUF tapedev 2>&1`);
die "tapedev not found in amanda.conf"
- if !$tapeDevice or $tapeDevice =~ m/no such parameter/;
+ if !$tapeDevice or $tapeDevice eq "" or
+ $tapeDevice =~ m/no such parameter/;
chomp ($changerDevice = `$sbindir/amgetconf$SUF changerdev 2>&1`);
chomp $changerDevice;
die "changerdev not found in amanda.conf"
chomp ($changerDevice = `$sbindir/amgetconf$SUF changerdev 2>&1`);
chomp $changerDevice;
die "changerdev not found in amanda.conf"
- if !$changerDevice or $changerDevice =~ m/no such parameter/;
+ if !$changerDevice or $changerDevice eq "" or
+ $changerDevice =~ m/no such parameter/;
#
# Initialise a few global variables
#
# Initialise a few global variables