aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Net
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2020-12-08 16:03:23 +0100
committerGuilhem Moulin <guilhem@fripost.org>2020-12-08 16:03:23 +0100
commit1630f2387c52a0ac460922eda6535165fdb279d1 (patch)
tree84b5385c45e36bc3ce5ad0d9c07c3b80db0b0364 /lib/Net
parentb5a74469e5c5e828d5799ae4a66d70347f8aa8a6 (diff)
libinterimap: 'debug' forces 'null-stderr' = 0.
The standard error is never sent to /dev/null in debug mode. Closes: deb#968392
Diffstat (limited to 'lib/Net')
-rw-r--r--lib/Net/IMAP/InterIMAP.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Net/IMAP/InterIMAP.pm b/lib/Net/IMAP/InterIMAP.pm
index 8b69e12..bd14625 100644
--- a/lib/Net/IMAP/InterIMAP.pm
+++ b/lib/Net/IMAP/InterIMAP.pm
@@ -329,7 +329,7 @@ sub new($%) {
open STDOUT, '>&', $s or $self->panic("Can't dup: $!");
my $stderr2;
- if ($self->{'null-stderr'} // 0) {
+ if (($self->{'null-stderr'} // 0) and !($self->{debug} // 0)) {
open $stderr2, '>&', *STDERR;
open STDERR, '>', '/dev/null' or $self->panic("Can't open /dev/null: $!");
}