Bugzilla – Bug 1091069
[Build213.2] yast2 lan module displays perl-related warning in terminal
Last modified: 2022-09-09 15:14:47 UTC
When I perform "yast2 lan help" as root from terminal it displays some perl-related warnings at the bottom of the output. YaST Configuration Module lan ------------------------------ Network Card Configuration Basic Syntax: yast2 lan interactive yast2 lan <command> [verbose] [options] yast2 lan help yast2 lan longhelp yast2 lan xmlhelp yast2 lan <command> help Commands: add Add a network card delete Delete a network card edit Change existing configuration list Display configuration summary show Display configuration summary Run 'yast2 lan <command> help' for a list of available options. Warning: unable to close filehandle properly: Bad file descriptor, <STDIN> line 21 during global destruction (#1) (S io) There were errors during the implicit close() done on a filehandle when its reference count reached zero while it was still open, e.g.: { open my $fh, '>', $file or die "open: '$file': $!\n"; print $fh $data or die "print: $!"; } # implicit close here Because various errors may only be detected by close() (e.g. buffering could allow the print in this example to return true even when the disk is full), it is dangerous to ignore its result. So when it happens implicitly, perl will signal errors by warning. Prior to version 5.22.0, perl ignored such errors, so the common idiom shown above was liable to cause silent data loss.
Tracking in YaST scrum board.
For me it looks like a duplicate of https://bugzilla.suse.com/show_bug.cgi?id=966042 which Martin already checked and proposed a fix for. So closing it as duplicated but feel free to reopen it if I'm wrong. *** This bug has been marked as a duplicate of bug 966042 ***